var __wxAppData = __wxAppData || {};
var __wxAppCode__ = __wxAppCode__ || {};
var global = global || {};
var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {
  entrys: {},
  defines: {},
  modules: {},
  ops: [],
  wxs_nf_init: undefined,
  total_ops: 0,
};
var Component = Component || function () {};
var definePlugin = definePlugin || function () {};
var requirePlugin = requirePlugin || function () {};
var Behavior = Behavior || function () {};
var __vd_version_info__ = __vd_version_info__ || {};
var __GWX_GLOBAL__ = __GWX_GLOBAL__ || {};
if (this && this.__g === undefined)
  Object.defineProperty(this, "__g", {
    configurable: false,
    enumerable: false,
    writable: false,
    value: (function () {
      function D(e, t) {
        if (typeof t != "undefined") e.children.push(t);
      }
      function S(e) {
        if (typeof e != "undefined")
          return { tag: "virtual", wxKey: e, children: [] };
        return { tag: "virtual", children: [] };
      }
      function v(e) {
        $gwxc++;
        if ($gwxc >= 16e3) {
          throw "Dom limit exceeded, please check if there's any mistake you've made.";
        }
        return {
          tag: "wx-" + e,
          attr: {},
          children: [],
          n: [],
          raw: {},
          generics: {},
        };
      }
      function e(e, t) {
        t && e.properities.push(t);
      }
      function t(e, t, r) {
        return typeof e[r] != "undefined" ? e[r] : t[r];
      }
      function u(e) {
        console.warn("WXMLRT_" + g + ":" + e);
      }
      function r(e, t) {
        u(
          t +
            ":-1:-1:-1: Template `" +
            e +
            "` is being called recursively, will be stop."
        );
      }
      var s = console.warn;
      var n = console.log;
      function o() {
        function e() {}
        e.prototype = {
          hn: function (e, t) {
            if (typeof e == "object") {
              var r = 0;
              var n = false,
                o = false;
              for (var a in e) {
                n = n | (a === "__value__");
                o = o | (a === "__wxspec__");
                r++;
                if (r > 2) break;
              }
              return r == 2 &&
                n &&
                o &&
                (t || e.__wxspec__ !== "m" || this.hn(e.__value__) === "h")
                ? "h"
                : "n";
            }
            return "n";
          },
          nh: function (e, t) {
            return { __value__: e, __wxspec__: t ? t : true };
          },
          rv: function (e) {
            return this.hn(e, true) === "n" ? e : this.rv(e.__value__);
          },
          hm: function (e) {
            if (typeof e == "object") {
              var t = 0;
              var r = false,
                n = false;
              for (var o in e) {
                r = r | (o === "__value__");
                n = n | (o === "__wxspec__");
                t++;
                if (t > 2) break;
              }
              return (
                t == 2 &&
                r &&
                n &&
                (e.__wxspec__ === "m" || this.hm(e.__value__))
              );
            }
            return false;
          },
        };
        return new e();
      }
      var A = o();
      function T(e) {
        var t = e.split("\n " + " " + " " + " ");
        for (var r = 0; r < t.length; ++r) {
          if (0 == r) continue;
          if (")" === t[r][t[r].length - 1])
            t[r] = t[r].replace(/\s\(.*\)$/, "");
          else t[r] = "at anonymous function";
        }
        return t.join("\n " + " " + " " + " ");
      }
      function a(M) {
        function m(e, t, r, n, o) {
          var a = false;
          var i = e[0][1];
          var p, u, l, f, v, c;
          switch (i) {
            case "?:":
              p = x(e[1], t, r, n, o, a);
              l = M && A.hn(p) === "h";
              f = A.rv(p) ? x(e[2], t, r, n, o, a) : x(e[3], t, r, n, o, a);
              f = l && A.hn(f) === "n" ? A.nh(f, "c") : f;
              return f;
              break;
            case "&&":
              p = x(e[1], t, r, n, o, a);
              l = M && A.hn(p) === "h";
              f = A.rv(p) ? x(e[2], t, r, n, o, a) : A.rv(p);
              f = l && A.hn(f) === "n" ? A.nh(f, "c") : f;
              return f;
              break;
            case "||":
              p = x(e[1], t, r, n, o, a);
              l = M && A.hn(p) === "h";
              f = A.rv(p) ? A.rv(p) : x(e[2], t, r, n, o, a);
              f = l && A.hn(f) === "n" ? A.nh(f, "c") : f;
              return f;
              break;
            case "+":
            case "*":
            case "/":
            case "%":
            case "|":
            case "^":
            case "&":
            case "===":
            case "==":
            case "!=":
            case "!==":
            case ">=":
            case "<=":
            case ">":
            case "<":
            case "<<":
            case ">>":
              p = x(e[1], t, r, n, o, a);
              u = x(e[2], t, r, n, o, a);
              l = M && (A.hn(p) === "h" || A.hn(u) === "h");
              switch (i) {
                case "+":
                  f = A.rv(p) + A.rv(u);
                  break;
                case "*":
                  f = A.rv(p) * A.rv(u);
                  break;
                case "/":
                  f = A.rv(p) / A.rv(u);
                  break;
                case "%":
                  f = A.rv(p) % A.rv(u);
                  break;
                case "|":
                  f = A.rv(p) | A.rv(u);
                  break;
                case "^":
                  f = A.rv(p) ^ A.rv(u);
                  break;
                case "&":
                  f = A.rv(p) & A.rv(u);
                  break;
                case "===":
                  f = A.rv(p) === A.rv(u);
                  break;
                case "==":
                  f = A.rv(p) == A.rv(u);
                  break;
                case "!=":
                  f = A.rv(p) != A.rv(u);
                  break;
                case "!==":
                  f = A.rv(p) !== A.rv(u);
                  break;
                case ">=":
                  f = A.rv(p) >= A.rv(u);
                  break;
                case "<=":
                  f = A.rv(p) <= A.rv(u);
                  break;
                case ">":
                  f = A.rv(p) > A.rv(u);
                  break;
                case "<":
                  f = A.rv(p) < A.rv(u);
                  break;
                case "<<":
                  f = A.rv(p) << A.rv(u);
                  break;
                case ">>":
                  f = A.rv(p) >> A.rv(u);
                  break;
                default:
                  break;
              }
              return l ? A.nh(f, "c") : f;
              break;
            case "-":
              p = e.length === 3 ? x(e[1], t, r, n, o, a) : 0;
              u =
                e.length === 3
                  ? x(e[2], t, r, n, o, a)
                  : x(e[1], t, r, n, o, a);
              l = M && (A.hn(p) === "h" || A.hn(u) === "h");
              f = l ? A.rv(p) - A.rv(u) : p - u;
              return l ? A.nh(f, "c") : f;
              break;
            case "!":
              p = x(e[1], t, r, n, o, a);
              l = M && A.hn(p) == "h";
              f = !A.rv(p);
              return l ? A.nh(f, "c") : f;
            case "~":
              p = x(e[1], t, r, n, o, a);
              l = M && A.hn(p) == "h";
              f = ~A.rv(p);
              return l ? A.nh(f, "c") : f;
            default:
              s("unrecognized op" + i);
          }
        }
        function x(e, t, r, n, o, a) {
          var i = e[0];
          var p = false;
          if (typeof a !== "undefined") o.ap = a;
          if (typeof i === "object") {
            var u = i[0];
            var l, f, v, c, s, y, b, d, h, _, g;
            switch (u) {
              case 2:
                return m(e, t, r, n, o);
                break;
              case 4:
                return x(e[1], t, r, n, o, p);
                break;
              case 5:
                switch (e.length) {
                  case 2:
                    l = x(e[1], t, r, n, o, p);
                    return M ? [l] : [A.rv(l)];
                    return [l];
                    break;
                  case 1:
                    return [];
                    break;
                  default:
                    l = x(e[1], t, r, n, o, p);
                    v = x(e[2], t, r, n, o, p);
                    l.push(M ? v : A.rv(v));
                    return l;
                    break;
                }
                break;
              case 6:
                l = x(e[1], t, r, n, o);
                var w = o.ap;
                h = A.hn(l) === "h";
                f = h ? A.rv(l) : l;
                o.is_affected |= h;
                if (M) {
                  if (f === null || typeof f === "undefined") {
                    return h ? A.nh(undefined, "e") : undefined;
                  }
                  v = x(e[2], t, r, n, o, p);
                  _ = A.hn(v) === "h";
                  c = _ ? A.rv(v) : v;
                  o.ap = w;
                  o.is_affected |= _;
                  if (
                    c === null ||
                    typeof c === "undefined" ||
                    c === "__proto__" ||
                    c === "prototype" ||
                    c === "caller"
                  ) {
                    return h || _ ? A.nh(undefined, "e") : undefined;
                  }
                  y = f[c];
                  if (typeof y === "function" && !w) y = undefined;
                  g = A.hn(y) === "h";
                  o.is_affected |= g;
                  return h || _ ? (g ? y : A.nh(y, "e")) : y;
                } else {
                  if (f === null || typeof f === "undefined") {
                    return undefined;
                  }
                  v = x(e[2], t, r, n, o, p);
                  _ = A.hn(v) === "h";
                  c = _ ? A.rv(v) : v;
                  o.ap = w;
                  o.is_affected |= _;
                  if (
                    c === null ||
                    typeof c === "undefined" ||
                    c === "__proto__" ||
                    c === "prototype" ||
                    c === "caller"
                  ) {
                    return undefined;
                  }
                  y = f[c];
                  if (typeof y === "function" && !w) y = undefined;
                  g = A.hn(y) === "h";
                  o.is_affected |= g;
                  return g ? A.rv(y) : y;
                }
              case 7:
                switch (e[1][0]) {
                  case 11:
                    o.is_affected |= A.hn(n) === "h";
                    return n;
                  case 3:
                    b = A.rv(r);
                    d = A.rv(t);
                    v = e[1][1];
                    if (n && n.f && n.f.hasOwnProperty(v)) {
                      l = n.f;
                      o.ap = true;
                    } else {
                      l =
                        b && b.hasOwnProperty(v)
                          ? r
                          : d && d.hasOwnProperty(v)
                          ? t
                          : undefined;
                    }
                    if (M) {
                      if (l) {
                        h = A.hn(l) === "h";
                        f = h ? A.rv(l) : l;
                        y = f[v];
                        g = A.hn(y) === "h";
                        o.is_affected |= h || g;
                        y = h && !g ? A.nh(y, "e") : y;
                        return y;
                      }
                    } else {
                      if (l) {
                        h = A.hn(l) === "h";
                        f = h ? A.rv(l) : l;
                        y = f[v];
                        g = A.hn(y) === "h";
                        o.is_affected |= h || g;
                        return A.rv(y);
                      }
                    }
                    return undefined;
                }
                break;
              case 8:
                l = {};
                l[e[1]] = x(e[2], t, r, n, o, p);
                return l;
                break;
              case 9:
                l = x(e[1], t, r, n, o, p);
                v = x(e[2], t, r, n, o, p);
                function O(e, t, r) {
                  var n, o;
                  h = A.hn(e) === "h";
                  _ = A.hn(t) === "h";
                  f = A.rv(e);
                  c = A.rv(t);
                  for (var a in c) {
                    if (r || !f.hasOwnProperty(a)) {
                      f[a] = M ? (_ ? A.nh(c[a], "e") : c[a]) : A.rv(c[a]);
                    }
                  }
                  return e;
                }
                var s = l;
                var j = true;
                if (typeof e[1][0] === "object" && e[1][0][0] === 10) {
                  l = v;
                  v = s;
                  j = false;
                }
                if (typeof e[1][0] === "object" && e[1][0][0] === 10) {
                  var P = {};
                  return O(O(P, l, j), v, j);
                } else return O(l, v, j);
                break;
              case 10:
                l = x(e[1], t, r, n, o, p);
                l = M ? l : A.rv(l);
                return l;
                break;
              case 12:
                var P;
                l = x(e[1], t, r, n, o);
                if (!o.ap) {
                  return M && A.hn(l) === "h" ? A.nh(P, "f") : P;
                }
                var w = o.ap;
                v = x(e[2], t, r, n, o, p);
                o.ap = w;
                h = A.hn(l) === "h";
                _ = N(v);
                f = A.rv(l);
                c = A.rv(v);
                snap_bb = K(c, "nv_");
                try {
                  P =
                    typeof f === "function"
                      ? K(f.apply(null, snap_bb))
                      : undefined;
                } catch (t) {
                  t.message = t.message.replace(/nv_/g, "");
                  t.stack = t.stack.substring(
                    0,
                    t.stack.indexOf("\n", t.stack.lastIndexOf("at nv_"))
                  );
                  t.stack = t.stack.replace(/\snv_/g, " ");
                  t.stack = T(t.stack);
                  if (n.debugInfo) {
                    t.stack +=
                      "\n " +
                      " " +
                      " " +
                      " at " +
                      n.debugInfo[0] +
                      ":" +
                      n.debugInfo[1] +
                      ":" +
                      n.debugInfo[2];
                    console.error(t);
                  }
                  P = undefined;
                }
                return M && (_ || h) ? A.nh(P, "f") : P;
            }
          } else {
            if (i === 3 || i === 1) return e[1];
            else if (i === 11) {
              var l = "";
              for (var D = 1; D < e.length; D++) {
                var S = A.rv(x(e[D], t, r, n, o, p));
                l += typeof S === "undefined" ? "" : S;
              }
              return l;
            }
          }
        }
        function e(e, t, r, n, o, a) {
          if (e[0] == "11182016") {
            n.debugInfo = e[2];
            return x(e[1], t, r, n, o, a);
          } else {
            n.debugInfo = null;
            return x(e, t, r, n, o, a);
          }
        }
        return e;
      }
      var f = a(true);
      var c = a(false);
      function i(e, t, r, n, o, a, i, p) {
        {
          var u = { is_affected: false };
          var l = f(t, r, n, o, u);
          if (JSON.stringify(l) != JSON.stringify(a) || u.is_affected != p) {
            console.warn(
              "A. " +
                e +
                " get result " +
                JSON.stringify(l) +
                ", " +
                u.is_affected +
                ", but " +
                JSON.stringify(a) +
                ", " +
                p +
                " is expected"
            );
          }
        }
        {
          var u = { is_affected: false };
          var l = c(t, r, n, o, u);
          if (JSON.stringify(l) != JSON.stringify(i) || u.is_affected != p) {
            console.warn(
              "B. " +
                e +
                " get result " +
                JSON.stringify(l) +
                ", " +
                u.is_affected +
                ", but " +
                JSON.stringify(i) +
                ", " +
                p +
                " is expected"
            );
          }
        }
      }
      function y(e, t, r, n, o, a, i, p, u) {
        var l = A.hn(e) === "n";
        var f = A.rv(n);
        var v = f.hasOwnProperty(i);
        var c = f.hasOwnProperty(p);
        var s = f[i];
        var y = f[p];
        var b = Object.prototype.toString.call(A.rv(e));
        var d = b[8];
        if (d === "N" && b[10] === "l") d = "X";
        var h;
        if (l) {
          if (d === "A") {
            var _;
            for (var g = 0; g < e.length; g++) {
              f[i] = e[g];
              f[p] = l ? g : A.nh(g, "h");
              _ = A.rv(e[g]);
              var w = u && _ ? (u === "*this" ? _ : A.rv(_[u])) : undefined;
              h = S(w);
              D(a, h);
              t(r, f, h, o);
            }
          } else if (d === "O") {
            var g = 0;
            var _;
            for (var O in e) {
              f[i] = e[O];
              f[p] = l ? O : A.nh(O, "h");
              _ = A.rv(e[O]);
              var w = u && _ ? (u === "*this" ? _ : A.rv(_[u])) : undefined;
              h = S(w);
              D(a, h);
              t(r, f, h, o);
              g++;
            }
          } else if (d === "S") {
            for (var g = 0; g < e.length; g++) {
              f[i] = e[g];
              f[p] = l ? g : A.nh(g, "h");
              h = S(e[g] + g);
              D(a, h);
              t(r, f, h, o);
            }
          } else if (d === "N") {
            for (var g = 0; g < e; g++) {
              f[i] = g;
              f[p] = l ? g : A.nh(g, "h");
              h = S(g);
              D(a, h);
              t(r, f, h, o);
            }
          } else {
          }
        } else {
          var j = A.rv(e);
          var _, P;
          if (d === "A") {
            for (var g = 0; g < j.length; g++) {
              P = j[g];
              P = A.hn(P) === "n" ? A.nh(P, "h") : P;
              _ = A.rv(P);
              f[i] = P;
              f[p] = l ? g : A.nh(g, "h");
              var w = u && _ ? (u === "*this" ? _ : A.rv(_[u])) : undefined;
              h = S(w);
              D(a, h);
              t(r, f, h, o);
            }
          } else if (d === "O") {
            var g = 0;
            for (var O in j) {
              P = j[O];
              P = A.hn(P) === "n" ? A.nh(P, "h") : P;
              _ = A.rv(P);
              f[i] = P;
              f[p] = l ? O : A.nh(O, "h");
              var w = u && _ ? (u === "*this" ? _ : A.rv(_[u])) : undefined;
              h = S(w);
              D(a, h);
              t(r, f, h, o);
              g++;
            }
          } else if (d === "S") {
            for (var g = 0; g < j.length; g++) {
              P = A.nh(j[g], "h");
              f[i] = P;
              f[p] = l ? g : A.nh(g, "h");
              h = S(e[g] + g);
              D(a, h);
              t(r, f, h, o);
            }
          } else if (d === "N") {
            for (var g = 0; g < j; g++) {
              P = A.nh(g, "h");
              f[i] = P;
              f[p] = l ? g : A.nh(g, "h");
              h = S(g);
              D(a, h);
              t(r, f, h, o);
            }
          } else {
          }
        }
        if (v) {
          f[i] = s;
        } else {
          delete f[i];
        }
        if (c) {
          f[p] = y;
        } else {
          delete f[p];
        }
      }
      function N(e) {
        if (A.hn(e) == "h") return true;
        if (typeof e !== "object") return false;
        for (var t in e) {
          if (e.hasOwnProperty(t)) {
            if (N(e[t])) return true;
          }
        }
        return false;
      }
      function b(e, t, r, n, o) {
        var a = false;
        var i = K(n, "", 2);
        if (o.ap && i && i.constructor === Function) {
          t = "$wxs:" + t;
          e.attr["$gdc"] = K;
        }
        if (o.is_affected || N(n)) {
          e.n.push(t);
          e.raw[t] = n;
        }
        e.attr[t] = i;
      }
      function d(e, t, r, n, o, a) {
        a.opindex = r;
        var i = {},
          p;
        var u = c(z[r], n, o, a, i);
        b(e, t, r, u, i);
      }
      function h(e, t, r, n, o, a, i) {
        i.opindex = n;
        var p = {},
          u;
        var l = c(e[n], o, a, i, p);
        b(t, r, n, l, p);
      }
      function p(e, t, r, n) {
        n.opindex = e;
        var o = {};
        var a = c(z[e], t, r, n, o);
        return a && a.constructor === Function ? undefined : a;
      }
      function l(e, t, r, n, o) {
        o.opindex = t;
        var a = {};
        var i = c(e[t], r, n, o, a);
        return i && i.constructor === Function ? undefined : i;
      }
      function _(e, t, r, n, o) {
        var o = o || {};
        n.opindex = e;
        return f(z[e], t, r, n, o);
      }
      function w(e, t, r, n, o, a) {
        var a = a || {};
        o.opindex = t;
        return f(e[t], r, n, o, a);
      }
      function O(e, t, r, n, o, a, i, p, u) {
        var l = {};
        var f = _(e, r, n, o);
        y(f, t, r, n, o, a, i, p, u);
      }
      function j(e, t, r, n, o, a, i, p, u, l) {
        var f = {};
        var v = w(e, t, n, o, a);
        y(v, r, n, o, a, i, p, u, l);
      }
      function P(e, t, r, n, o, a) {
        var i = v(e);
        var p = 0;
        for (var u = 0; u < t.length; u += 2) {
          if (p + t[u + 1] < 0) {
            i.attr[t[u]] = true;
          } else {
            d(i, t[u], p + t[u + 1], n, o, a);
            if (p === 0) p = t[u + 1];
          }
        }
        for (var u = 0; u < r.length; u += 2) {
          if (p + r[u + 1] < 0) {
            i.generics[r[u]] = "";
          } else {
            var l = c(z[p + r[u + 1]], n, o, a);
            if (l != "") l = "wx-" + l;
            i.generics[r[u]] = l;
            if (p === 0) p = r[u + 1];
          }
        }
        return i;
      }
      function M(e, t, r, n, o, a, i) {
        var p = v(t);
        var u = 0;
        for (var l = 0; l < r.length; l += 2) {
          if (u + r[l + 1] < 0) {
            p.attr[r[l]] = true;
          } else {
            h(e, p, r[l], u + r[l + 1], o, a, i);
            if (u === 0) u = r[l + 1];
          }
        }
        for (var l = 0; l < n.length; l += 2) {
          if (u + n[l + 1] < 0) {
            p.generics[n[l]] = "";
          } else {
            var f = c(e[u + n[l + 1]], o, a, i);
            if (f != "") f = "wx-" + f;
            p.generics[n[l]] = f;
            if (u === 0) u = n[l + 1];
          }
        }
        return p;
      }
      var m = function () {
        if (
          typeof __WXML_GLOBAL__ === "undefined" ||
          undefined === __WXML_GLOBAL__.wxs_nf_init
        ) {
          x();
          C();
          k();
          U();
          I();
          L();
          E();
          R();
          F();
        }
        if (typeof __WXML_GLOBAL__ !== "undefined")
          __WXML_GLOBAL__.wxs_nf_init = true;
      };
      var x = function () {
        Object.defineProperty(Object.prototype, "nv_constructor", {
          writable: true,
          value: "Object",
        });
        Object.defineProperty(Object.prototype, "nv_toString", {
          writable: true,
          value: function () {
            return "[object Object]";
          },
        });
      };
      var C = function () {
        Object.defineProperty(Function.prototype, "nv_constructor", {
          writable: true,
          value: "Function",
        });
        Object.defineProperty(Function.prototype, "nv_length", {
          get: function () {
            return this.length;
          },
          set: function () {},
        });
        Object.defineProperty(Function.prototype, "nv_toString", {
          writable: true,
          value: function () {
            return "[function Function]";
          },
        });
      };
      var k = function () {
        Object.defineProperty(Array.prototype, "nv_toString", {
          writable: true,
          value: function () {
            return this.nv_join();
          },
        });
        Object.defineProperty(Array.prototype, "nv_join", {
          writable: true,
          value: function (e) {
            e = undefined == e ? "," : e;
            var t = "";
            for (var r = 0; r < this.length; ++r) {
              if (0 != r) t += e;
              if (null == this[r] || undefined == this[r]) t += "";
              else if (typeof this[r] == "function") t += this[r].nv_toString();
              else if (
                typeof this[r] == "object" &&
                this[r].nv_constructor === "Array"
              )
                t += this[r].nv_join();
              else t += this[r].toString();
            }
            return t;
          },
        });
        Object.defineProperty(Array.prototype, "nv_constructor", {
          writable: true,
          value: "Array",
        });
        Object.defineProperty(Array.prototype, "nv_concat", {
          writable: true,
          value: Array.prototype.concat,
        });
        Object.defineProperty(Array.prototype, "nv_pop", {
          writable: true,
          value: Array.prototype.pop,
        });
        Object.defineProperty(Array.prototype, "nv_push", {
          writable: true,
          value: Array.prototype.push,
        });
        Object.defineProperty(Array.prototype, "nv_reverse", {
          writable: true,
          value: Array.prototype.reverse,
        });
        Object.defineProperty(Array.prototype, "nv_shift", {
          writable: true,
          value: Array.prototype.shift,
        });
        Object.defineProperty(Array.prototype, "nv_slice", {
          writable: true,
          value: Array.prototype.slice,
        });
        Object.defineProperty(Array.prototype, "nv_sort", {
          writable: true,
          value: Array.prototype.sort,
        });
        Object.defineProperty(Array.prototype, "nv_splice", {
          writable: true,
          value: Array.prototype.splice,
        });
        Object.defineProperty(Array.prototype, "nv_unshift", {
          writable: true,
          value: Array.prototype.unshift,
        });
        Object.defineProperty(Array.prototype, "nv_indexOf", {
          writable: true,
          value: Array.prototype.indexOf,
        });
        Object.defineProperty(Array.prototype, "nv_lastIndexOf", {
          writable: true,
          value: Array.prototype.lastIndexOf,
        });
        Object.defineProperty(Array.prototype, "nv_every", {
          writable: true,
          value: Array.prototype.every,
        });
        Object.defineProperty(Array.prototype, "nv_some", {
          writable: true,
          value: Array.prototype.some,
        });
        Object.defineProperty(Array.prototype, "nv_forEach", {
          writable: true,
          value: Array.prototype.forEach,
        });
        Object.defineProperty(Array.prototype, "nv_map", {
          writable: true,
          value: Array.prototype.map,
        });
        Object.defineProperty(Array.prototype, "nv_filter", {
          writable: true,
          value: Array.prototype.filter,
        });
        Object.defineProperty(Array.prototype, "nv_reduce", {
          writable: true,
          value: Array.prototype.reduce,
        });
        Object.defineProperty(Array.prototype, "nv_reduceRight", {
          writable: true,
          value: Array.prototype.reduceRight,
        });
        Object.defineProperty(Array.prototype, "nv_length", {
          get: function () {
            return this.length;
          },
          set: function (e) {
            this.length = e;
          },
        });
      };
      var U = function () {
        Object.defineProperty(String.prototype, "nv_constructor", {
          writable: true,
          value: "String",
        });
        Object.defineProperty(String.prototype, "nv_toString", {
          writable: true,
          value: String.prototype.toString,
        });
        Object.defineProperty(String.prototype, "nv_valueOf", {
          writable: true,
          value: String.prototype.valueOf,
        });
        Object.defineProperty(String.prototype, "nv_charAt", {
          writable: true,
          value: String.prototype.charAt,
        });
        Object.defineProperty(String.prototype, "nv_charCodeAt", {
          writable: true,
          value: String.prototype.charCodeAt,
        });
        Object.defineProperty(String.prototype, "nv_concat", {
          writable: true,
          value: String.prototype.concat,
        });
        Object.defineProperty(String.prototype, "nv_indexOf", {
          writable: true,
          value: String.prototype.indexOf,
        });
        Object.defineProperty(String.prototype, "nv_lastIndexOf", {
          writable: true,
          value: String.prototype.lastIndexOf,
        });
        Object.defineProperty(String.prototype, "nv_localeCompare", {
          writable: true,
          value: String.prototype.localeCompare,
        });
        Object.defineProperty(String.prototype, "nv_match", {
          writable: true,
          value: String.prototype.match,
        });
        Object.defineProperty(String.prototype, "nv_replace", {
          writable: true,
          value: String.prototype.replace,
        });
        Object.defineProperty(String.prototype, "nv_search", {
          writable: true,
          value: String.prototype.search,
        });
        Object.defineProperty(String.prototype, "nv_slice", {
          writable: true,
          value: String.prototype.slice,
        });
        Object.defineProperty(String.prototype, "nv_split", {
          writable: true,
          value: String.prototype.split,
        });
        Object.defineProperty(String.prototype, "nv_substring", {
          writable: true,
          value: String.prototype.substring,
        });
        Object.defineProperty(String.prototype, "nv_toLowerCase", {
          writable: true,
          value: String.prototype.toLowerCase,
        });
        Object.defineProperty(String.prototype, "nv_toLocaleLowerCase", {
          writable: true,
          value: String.prototype.toLocaleLowerCase,
        });
        Object.defineProperty(String.prototype, "nv_toUpperCase", {
          writable: true,
          value: String.prototype.toUpperCase,
        });
        Object.defineProperty(String.prototype, "nv_toLocaleUpperCase", {
          writable: true,
          value: String.prototype.toLocaleUpperCase,
        });
        Object.defineProperty(String.prototype, "nv_trim", {
          writable: true,
          value: String.prototype.trim,
        });
        Object.defineProperty(String.prototype, "nv_length", {
          get: function () {
            return this.length;
          },
          set: function (e) {
            this.length = e;
          },
        });
      };
      var I = function () {
        Object.defineProperty(Boolean.prototype, "nv_constructor", {
          writable: true,
          value: "Boolean",
        });
        Object.defineProperty(Boolean.prototype, "nv_toString", {
          writable: true,
          value: Boolean.prototype.toString,
        });
        Object.defineProperty(Boolean.prototype, "nv_valueOf", {
          writable: true,
          value: Boolean.prototype.valueOf,
        });
      };
      var L = function () {
        Object.defineProperty(Number, "nv_MAX_VALUE", {
          writable: false,
          value: Number.MAX_VALUE,
        });
        Object.defineProperty(Number, "nv_MIN_VALUE", {
          writable: false,
          value: Number.MIN_VALUE,
        });
        Object.defineProperty(Number, "nv_NEGATIVE_INFINITY", {
          writable: false,
          value: Number.NEGATIVE_INFINITY,
        });
        Object.defineProperty(Number, "nv_POSITIVE_INFINITY", {
          writable: false,
          value: Number.POSITIVE_INFINITY,
        });
        Object.defineProperty(Number.prototype, "nv_constructor", {
          writable: true,
          value: "Number",
        });
        Object.defineProperty(Number.prototype, "nv_toString", {
          writable: true,
          value: Number.prototype.toString,
        });
        Object.defineProperty(Number.prototype, "nv_toLocaleString", {
          writable: true,
          value: Number.prototype.toLocaleString,
        });
        Object.defineProperty(Number.prototype, "nv_valueOf", {
          writable: true,
          value: Number.prototype.valueOf,
        });
        Object.defineProperty(Number.prototype, "nv_toFixed", {
          writable: true,
          value: Number.prototype.toFixed,
        });
        Object.defineProperty(Number.prototype, "nv_toExponential", {
          writable: true,
          value: Number.prototype.toExponential,
        });
        Object.defineProperty(Number.prototype, "nv_toPrecision", {
          writable: true,
          value: Number.prototype.toPrecision,
        });
      };
      var E = function () {
        Object.defineProperty(Math, "nv_E", { writable: false, value: Math.E });
        Object.defineProperty(Math, "nv_LN10", {
          writable: false,
          value: Math.LN10,
        });
        Object.defineProperty(Math, "nv_LN2", {
          writable: false,
          value: Math.LN2,
        });
        Object.defineProperty(Math, "nv_LOG2E", {
          writable: false,
          value: Math.LOG2E,
        });
        Object.defineProperty(Math, "nv_LOG10E", {
          writable: false,
          value: Math.LOG10E,
        });
        Object.defineProperty(Math, "nv_PI", {
          writable: false,
          value: Math.PI,
        });
        Object.defineProperty(Math, "nv_SQRT1_2", {
          writable: false,
          value: Math.SQRT1_2,
        });
        Object.defineProperty(Math, "nv_SQRT2", {
          writable: false,
          value: Math.SQRT2,
        });
        Object.defineProperty(Math, "nv_abs", {
          writable: false,
          value: Math.abs,
        });
        Object.defineProperty(Math, "nv_acos", {
          writable: false,
          value: Math.acos,
        });
        Object.defineProperty(Math, "nv_asin", {
          writable: false,
          value: Math.asin,
        });
        Object.defineProperty(Math, "nv_atan", {
          writable: false,
          value: Math.atan,
        });
        Object.defineProperty(Math, "nv_atan2", {
          writable: false,
          value: Math.atan2,
        });
        Object.defineProperty(Math, "nv_ceil", {
          writable: false,
          value: Math.ceil,
        });
        Object.defineProperty(Math, "nv_cos", {
          writable: false,
          value: Math.cos,
        });
        Object.defineProperty(Math, "nv_exp", {
          writable: false,
          value: Math.exp,
        });
        Object.defineProperty(Math, "nv_floor", {
          writable: false,
          value: Math.floor,
        });
        Object.defineProperty(Math, "nv_log", {
          writable: false,
          value: Math.log,
        });
        Object.defineProperty(Math, "nv_max", {
          writable: false,
          value: Math.max,
        });
        Object.defineProperty(Math, "nv_min", {
          writable: false,
          value: Math.min,
        });
        Object.defineProperty(Math, "nv_pow", {
          writable: false,
          value: Math.pow,
        });
        Object.defineProperty(Math, "nv_random", {
          writable: false,
          value: Math.random,
        });
        Object.defineProperty(Math, "nv_round", {
          writable: false,
          value: Math.round,
        });
        Object.defineProperty(Math, "nv_sin", {
          writable: false,
          value: Math.sin,
        });
        Object.defineProperty(Math, "nv_sqrt", {
          writable: false,
          value: Math.sqrt,
        });
        Object.defineProperty(Math, "nv_tan", {
          writable: false,
          value: Math.tan,
        });
      };
      var R = function () {
        Object.defineProperty(Date.prototype, "nv_constructor", {
          writable: true,
          value: "Date",
        });
        Object.defineProperty(Date, "nv_parse", {
          writable: true,
          value: Date.parse,
        });
        Object.defineProperty(Date, "nv_UTC", {
          writable: true,
          value: Date.UTC,
        });
        Object.defineProperty(Date, "nv_now", {
          writable: true,
          value: Date.now,
        });
        Object.defineProperty(Date.prototype, "nv_toString", {
          writable: true,
          value: Date.prototype.toString,
        });
        Object.defineProperty(Date.prototype, "nv_toDateString", {
          writable: true,
          value: Date.prototype.toDateString,
        });
        Object.defineProperty(Date.prototype, "nv_toTimeString", {
          writable: true,
          value: Date.prototype.toTimeString,
        });
        Object.defineProperty(Date.prototype, "nv_toLocaleString", {
          writable: true,
          value: Date.prototype.toLocaleString,
        });
        Object.defineProperty(Date.prototype, "nv_toLocaleDateString", {
          writable: true,
          value: Date.prototype.toLocaleDateString,
        });
        Object.defineProperty(Date.prototype, "nv_toLocaleTimeString", {
          writable: true,
          value: Date.prototype.toLocaleTimeString,
        });
        Object.defineProperty(Date.prototype, "nv_valueOf", {
          writable: true,
          value: Date.prototype.valueOf,
        });
        Object.defineProperty(Date.prototype, "nv_getTime", {
          writable: true,
          value: Date.prototype.getTime,
        });
        Object.defineProperty(Date.prototype, "nv_getFullYear", {
          writable: true,
          value: Date.prototype.getFullYear,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCFullYear", {
          writable: true,
          value: Date.prototype.getUTCFullYear,
        });
        Object.defineProperty(Date.prototype, "nv_getMonth", {
          writable: true,
          value: Date.prototype.getMonth,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCMonth", {
          writable: true,
          value: Date.prototype.getUTCMonth,
        });
        Object.defineProperty(Date.prototype, "nv_getDate", {
          writable: true,
          value: Date.prototype.getDate,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCDate", {
          writable: true,
          value: Date.prototype.getUTCDate,
        });
        Object.defineProperty(Date.prototype, "nv_getDay", {
          writable: true,
          value: Date.prototype.getDay,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCDay", {
          writable: true,
          value: Date.prototype.getUTCDay,
        });
        Object.defineProperty(Date.prototype, "nv_getHours", {
          writable: true,
          value: Date.prototype.getHours,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCHours", {
          writable: true,
          value: Date.prototype.getUTCHours,
        });
        Object.defineProperty(Date.prototype, "nv_getMinutes", {
          writable: true,
          value: Date.prototype.getMinutes,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCMinutes", {
          writable: true,
          value: Date.prototype.getUTCMinutes,
        });
        Object.defineProperty(Date.prototype, "nv_getSeconds", {
          writable: true,
          value: Date.prototype.getSeconds,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCSeconds", {
          writable: true,
          value: Date.prototype.getUTCSeconds,
        });
        Object.defineProperty(Date.prototype, "nv_getMilliseconds", {
          writable: true,
          value: Date.prototype.getMilliseconds,
        });
        Object.defineProperty(Date.prototype, "nv_getUTCMilliseconds", {
          writable: true,
          value: Date.prototype.getUTCMilliseconds,
        });
        Object.defineProperty(Date.prototype, "nv_getTimezoneOffset", {
          writable: true,
          value: Date.prototype.getTimezoneOffset,
        });
        Object.defineProperty(Date.prototype, "nv_setTime", {
          writable: true,
          value: Date.prototype.setTime,
        });
        Object.defineProperty(Date.prototype, "nv_setMilliseconds", {
          writable: true,
          value: Date.prototype.setMilliseconds,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCMilliseconds", {
          writable: true,
          value: Date.prototype.setUTCMilliseconds,
        });
        Object.defineProperty(Date.prototype, "nv_setSeconds", {
          writable: true,
          value: Date.prototype.setSeconds,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCSeconds", {
          writable: true,
          value: Date.prototype.setUTCSeconds,
        });
        Object.defineProperty(Date.prototype, "nv_setMinutes", {
          writable: true,
          value: Date.prototype.setMinutes,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCMinutes", {
          writable: true,
          value: Date.prototype.setUTCMinutes,
        });
        Object.defineProperty(Date.prototype, "nv_setHours", {
          writable: true,
          value: Date.prototype.setHours,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCHours", {
          writable: true,
          value: Date.prototype.setUTCHours,
        });
        Object.defineProperty(Date.prototype, "nv_setDate", {
          writable: true,
          value: Date.prototype.setDate,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCDate", {
          writable: true,
          value: Date.prototype.setUTCDate,
        });
        Object.defineProperty(Date.prototype, "nv_setMonth", {
          writable: true,
          value: Date.prototype.setMonth,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCMonth", {
          writable: true,
          value: Date.prototype.setUTCMonth,
        });
        Object.defineProperty(Date.prototype, "nv_setFullYear", {
          writable: true,
          value: Date.prototype.setFullYear,
        });
        Object.defineProperty(Date.prototype, "nv_setUTCFullYear", {
          writable: true,
          value: Date.prototype.setUTCFullYear,
        });
        Object.defineProperty(Date.prototype, "nv_toUTCString", {
          writable: true,
          value: Date.prototype.toUTCString,
        });
        Object.defineProperty(Date.prototype, "nv_toISOString", {
          writable: true,
          value: Date.prototype.toISOString,
        });
        Object.defineProperty(Date.prototype, "nv_toJSON", {
          writable: true,
          value: Date.prototype.toJSON,
        });
      };
      var F = function () {
        Object.defineProperty(RegExp.prototype, "nv_constructor", {
          writable: true,
          value: "RegExp",
        });
        Object.defineProperty(RegExp.prototype, "nv_exec", {
          writable: true,
          value: RegExp.prototype.exec,
        });
        Object.defineProperty(RegExp.prototype, "nv_test", {
          writable: true,
          value: RegExp.prototype.test,
        });
        Object.defineProperty(RegExp.prototype, "nv_toString", {
          writable: true,
          value: RegExp.prototype.toString,
        });
        Object.defineProperty(RegExp.prototype, "nv_source", {
          get: function () {
            return this.source;
          },
          set: function () {},
        });
        Object.defineProperty(RegExp.prototype, "nv_global", {
          get: function () {
            return this.global;
          },
          set: function () {},
        });
        Object.defineProperty(RegExp.prototype, "nv_ignoreCase", {
          get: function () {
            return this.ignoreCase;
          },
          set: function () {},
        });
        Object.defineProperty(RegExp.prototype, "nv_multiline", {
          get: function () {
            return this.multiline;
          },
          set: function () {},
        });
        Object.defineProperty(RegExp.prototype, "nv_lastIndex", {
          get: function () {
            return this.lastIndex;
          },
          set: function (e) {
            this.lastIndex = e;
          },
        });
      };
      m();
      var J = function () {
        var e = Array.prototype.slice.call(arguments);
        e.unshift(Date);
        return new (Function.prototype.bind.apply(Date, e))();
      };
      var B = function () {
        var e = Array.prototype.slice.call(arguments);
        e.unshift(RegExp);
        return new (Function.prototype.bind.apply(RegExp, e))();
      };
      var Y = {};
      Y.nv_log = function () {
        var e = "WXSRT:";
        for (var t = 0; t < arguments.length; ++t) e += arguments[t] + " ";
        console.log(e);
      };
      var G = parseInt,
        X = parseFloat,
        H = isNaN,
        V = isFinite,
        $ = decodeURI,
        W = decodeURIComponent,
        Q = encodeURI,
        q = encodeURIComponent;
      function K(e, t, r) {
        e = A.rv(e);
        if (e === null || e === undefined) return e;
        if (
          typeof e === "string" ||
          typeof e === "boolean" ||
          typeof e === "number"
        )
          return e;
        if (e.constructor === Object) {
          var n = {};
          for (var o in e)
            if (Object.prototype.hasOwnProperty.call(e, o))
              if (undefined === t) n[o.substring(3)] = K(e[o], t, r);
              else n[t + o] = K(e[o], t, r);
          return n;
        }
        if (e.constructor === Array) {
          var n = [];
          for (var a = 0; a < e.length; a++) n.push(K(e[a], t, r));
          return n;
        }
        if (e.constructor === Date) {
          var n = new Date();
          n.setTime(e.getTime());
          return n;
        }
        if (e.constructor === RegExp) {
          var i = "";
          if (e.global) i += "g";
          if (e.ignoreCase) i += "i";
          if (e.multiline) i += "m";
          return new RegExp(e.source, i);
        }
        if (r && typeof e === "function") {
          if (r == 1) return K(e(), undefined, 2);
          if (r == 2) return e;
        }
        return null;
      }
      var Z = {};
      Z.nv_stringify = function (e) {
        JSON.stringify(e);
        return JSON.stringify(K(e));
      };
      Z.nv_parse = function (e) {
        if (e === undefined) return undefined;
        var t = JSON.parse(e);
        return K(t, "nv_");
      };
      function ee(e, t, r, n) {
        e.extraAttr = { t_action: t, t_rawid: r };
        if (typeof n != "undefined") e.extraAttr.t_cid = n;
      }
      function te() {
        if (typeof __globalThis.__webview_engine_version__ == "undefined")
          return 0;
        return __globalThis.__webview_engine_version__;
      }
      function re(e, t, r, n, o, a) {
        var i = ne(t, r, n);
        if (i) e.push(i);
        else {
          e.push("");
          u(
            n +
              ":import:" +
              o +
              ":" +
              a +
              ": Path `" +
              t +
              "` not found from `" +
              n +
              "`."
          );
        }
      }
      function ne(e, t, r) {
        if (e[0] != "/") {
          var n = r.split("/");
          n.pop();
          var o = e.split("/");
          for (var a = 0; a < o.length; a++) {
            if (o[a] == "..") n.pop();
            else if (!o[a] || o[a] == ".") continue;
            else n.push(o[a]);
          }
          e = n.join("/");
        }
        if (r[0] == "." && e[0] == "/") e = "." + e;
        if (t[e]) return e;
        if (t[e + ".wxml"]) return e + ".wxml";
      }
      function oe(e, t, r, n) {
        if (!t) return;
        if (n[e][t]) return n[e][t];
        for (var o = r[e].i.length - 1; o >= 0; o--) {
          if (r[e].i[o] && n[r[e].i[o]][t]) return n[r[e].i[o]][t];
        }
        for (var o = r[e].ti.length - 1; o >= 0; o--) {
          var a = ne(r[e].ti[o], r, e);
          if (a && n[a][t]) return n[a][t];
        }
        var i = ae(r, e);
        for (var o = 0; o < i.length; o++) {
          if (i[o] && n[i[o]][t]) return n[i[o]][t];
        }
        for (var p = r[e].j.length - 1; p >= 0; p--)
          if (r[e].j[p]) {
            for (var a = r[r[e].j[p]].ti.length - 1; a >= 0; a--) {
              var u = ne(r[r[e].j[p]].ti[a], r, e);
              if (u && n[u][t]) {
                return n[u][t];
              }
            }
          }
      }
      function ae(e, t) {
        if (!t) return [];
        if ($gaic[t]) {
          return $gaic[t];
        }
        var r = [],
          n = [],
          o = 0,
          a = 0,
          i = {},
          p = {};
        n.push(t);
        p[t] = true;
        a++;
        while (o < a) {
          var u = n[o++];
          for (var l = 0; l < e[u].ic.length; l++) {
            var f = e[u].ic[l];
            var v = ne(f, e, u);
            if (v && !p[v]) {
              p[v] = true;
              n.push(v);
              a++;
            }
          }
          for (var l = 0; u != t && l < e[u].ti.length; l++) {
            var c = e[u].ti[l];
            var s = ne(c, e, u);
            if (s && !i[s]) {
              i[s] = true;
              r.push(s);
            }
          }
        }
        $gaic[t] = r;
        return r;
      }
      var ie = {};
      function pe(e, t, r, n, o, a, i) {
        var p = ne(e, t, r);
        t[r].j.push(p);
        if (p) {
          if (ie[p]) {
            u(
              "-1:include:-1:-1: `" +
                e +
                "` is being included in a loop, will be stop."
            );
            return;
          }
          ie[p] = true;
          try {
            t[p].f(n, o, a, i);
          } catch (n) {}
          ie[p] = false;
        } else {
          u(
            r +
              ":include:-1:-1: Included path `" +
              e +
              "` not found from `" +
              r +
              "`."
          );
        }
      }
      function ue(e, t, r, n) {
        u(t + ":template:" + r + ":" + n + ": Template `" + e + "` not found.");
      }
      function le(e) {
        var t = false;
        delete e.properities;
        delete e.n;
        if (e.children) {
          do {
            t = false;
            var r = [];
            for (var n = 0; n < e.children.length; n++) {
              var o = e.children[n];
              if (o.tag == "virtual") {
                t = true;
                for (var a = 0; o.children && a < o.children.length; a++) {
                  r.push(o.children[a]);
                }
              } else {
                r.push(o);
              }
            }
            e.children = r;
          } while (t);
          for (var n = 0; n < e.children.length; n++) {
            le(e.children[n]);
          }
        }
        return e;
      }
      function fe(e) {
        if (e.tag == "wx-wx-scope") {
          e.tag = "virtual";
          e.wxCkey = "11";
          e["wxScopeData"] = e.attr["wx:scope-data"];
          delete e.n;
          delete e.raw;
          delete e.generics;
          delete e.attr;
        }
        for (var t = 0; e.children && t < e.children.length; t++) {
          fe(e.children[t]);
        }
        return e;
      }
      return {
        a: D,
        b: S,
        c: v,
        d: e,
        e: t,
        f: u,
        g: r,
        h: s,
        i: n,
        j: o,
        k: A,
        l: T,
        m: a,
        n: f,
        o: c,
        p: i,
        q: y,
        r: N,
        s: b,
        t: d,
        u: h,
        v: p,
        w: l,
        x: _,
        y: w,
        z: O,
        A: j,
        B: P,
        C: M,
        D: J,
        E: B,
        F: Y,
        G: G,
        H: X,
        I: H,
        J: V,
        K: $,
        L: W,
        M: Q,
        N: q,
        O: K,
        P: Z,
        Q: ee,
        R: te,
        S: re,
        T: ne,
        U: oe,
        V: ae,
        W: ie,
        X: pe,
        Y: ue,
        Z: le,
        aa: fe,
      };
    })(),
  });
Object.freeze(__g);
g = "";
var __wxAppCode__ = void 0 === __wxAppCode__ ? {} : __wxAppCode__,
  __wxCodeSpace__ = void 0 === __wxCodeSpace__ ? void 0 : __wxCodeSpace__,
  __globalForCodeSpace__ = (function () {
    if (void 0 !== this) return this;
    if ("undefined" != typeof globalThis) return globalThis;
    if ("undefined" != typeof self) return self;
    if ("undefined" != typeof window) return window;
    if ("undefined" != typeof global) return global;
    throw new Error("The global object cannot be recognized");
  })();
(() => {
  "use strict";
  var t,
    e = function (t, e, n) {
      if (n || 2 === arguments.length)
        for (var o, i = 0, r = e.length; i < r; i++)
          (!o && i in e) ||
            (o || (o = Array.prototype.slice.call(e, 0, i)), (o[i] = e[i]));
      return t.concat(o || Array.prototype.slice.call(e));
    },
    n = function (t) {
      return t;
    },
    o = function (t, e) {
      return !0 === t || (t ? t[e] : void 0);
    },
    i = function (t) {
      var e = t.replace(/-[A-Za-z]/g, function (t) {
        return t[1].toUpperCase();
      });
      return e;
    },
    r = (function () {
      function t(t) {
        (this.changePropFilter = n),
          (this.eventListenerFilter = n),
          (this.procGen = t);
      }
      return (
        (t.prototype._$createShadowRoot = function () {
          return { tag: "shadow", children: [], n: [], attr: {} };
        }),
        (t.prototype.create = function (t) {
          var e = this.procGen,
            n = this._$createShadowRoot(),
            o = e(this, !0, t, void 0);
          return this.handleChildrenCreation(o.C, n, void 0, void 0), n;
        }),
        (t.prototype.update = function (t, e) {
          var n = this.procGen,
            o = this._$createShadowRoot(),
            i = n(this, !0, t, void 0);
          this.handleChildrenCreation(i.C, o, void 0, void 0);
          var r = n(this, !1, t, e);
          return this.handleChildrenUpdate(r.C, o, void 0, void 0), o;
        }),
        (t.prototype.handleChildrenCreation = function (t, n, o, i) {
          var r = this;
          t(
            !0,
            function (t, e) {
              n.children.push(null != t ? t : "");
            },
            function (t, e, o, i, a, l) {
              for (
                var c = {}, _ = Object.keys(e), p = 0;
                p < _.length;
                p += 1
              ) {
                var u = _[p];
                c["wx-".concat(u)] = "wx-".concat(e[u]);
              }
              var d = {
                tag: "wx-".concat(t),
                children: [],
                generics: c,
                n: [],
                attr: {},
              };
              o(d, !0),
                r.handleChildrenCreation(i, d, void 0, void 0),
                void 0 !== a && (d.attr.slot = a),
                n.children.push(d);
            },
            function (t, e) {
              var a = { tag: "virtual", wxXCkey: 3, wxVkey: t, children: [] };
              r.handleChildrenCreation(e, a, o, i), n.children.push(a);
            },
            function (t, a, l, c, _) {
              var p = { tag: "virtual", wxXCkey: 4, children: [] },
                u = function (t, n) {
                  var l = {
                    tag: "virtual",
                    wxKey: null == a ? void 0 : t[a],
                    children: [],
                  };
                  r.handleChildrenCreation(
                    function (o, i, r, a, l, p, u) {
                      _(
                        o,
                        t,
                        n,
                        void 0,
                        void 0,
                        c ? e(e([], c, !0), [n], !1) : null,
                        i,
                        r,
                        a,
                        l,
                        p,
                        u
                      );
                    },
                    l,
                    o,
                    i
                  ),
                    p.children.push(l);
                };
              if (Array.isArray(t))
                t.forEach(function (t, e) {
                  u(t, e);
                });
              else if ("object" == typeof t && null !== t)
                Object.keys(t).forEach(function (e) {
                  u(t[e], e);
                });
              else if ("string" == typeof t)
                for (var d = 0; d < t.length; d += 1) u(t[d], d);
              else if ("number" == typeof t) for (d = 0; d < t; d += 1) u(d, d);
              n.children.push(p);
            },
            function (t, e) {
              var o = {
                tag: "wx-slot",
                children: [],
                n: void 0 !== t ? ["name"] : [],
                attr: { name: t },
              };
              e && e(o), n.children.push(o);
            },
            function (t, e) {
              if (void 0 !== e) {
                var a = {
                  tag: "virtual",
                  children: [],
                  n: ["slot"],
                  attr: { slot: e },
                };
                r.handleChildrenCreation(t, a, void 0, void 0),
                  n.children.push(a);
              } else
                (a = { tag: "virtual", wxXCkey: 3, children: [] }),
                  r.handleChildrenCreation(t, a, o, i),
                  n.children.push(a);
            },
            void 0,
            void 0
          );
        }),
        (t.prototype.handleChildrenUpdate = function (t, n, i, r) {
          var a = this,
            l = 0;
          t(
            !1,
            function (t, e) {
              l += 1;
            },
            function (t, e, o, i, r, c) {
              var _ = n.children[l];
              (_._$update = !0),
                o(_, !1),
                a.handleChildrenUpdate(i, _, void 0, void 0),
                void 0 !== r && _.n.push("slot"),
                (l += 1);
            },
            function (t, e) {
              var o = n.children[l];
              (o._$update = !0), a.handleChildrenUpdate(e, o, i, r), (l += 1);
            },
            function (t, c, _, p, u) {
              var d = n.children[l];
              d._$update = !0;
              var h = 0,
                s = function (t, n, o) {
                  var l = d.children[h];
                  (l._$update = !0),
                    a.handleChildrenUpdate(
                      function (i, r, a, l, c, _, d) {
                        u(
                          i,
                          t,
                          n,
                          o,
                          void 0,
                          p ? e(e([], p, !0), [n], !1) : null,
                          r,
                          a,
                          l,
                          c,
                          _,
                          d
                        );
                      },
                      l,
                      i,
                      r
                    ),
                    (h += 1);
                };
              if (Array.isArray(t))
                t.forEach(function (t, e) {
                  s(t, e, o(_, e));
                });
              else if ("object" == typeof t && null !== t)
                Object.keys(t).forEach(function (e) {
                  s(t[e], e, o(_, e));
                });
              else if ("string" == typeof t)
                for (var f = 0; f < t.length; f += 1) s(t[f], f, o(_, f));
              else if ("number" == typeof t)
                for (f = 0; f < t; f += 1) s(f, f, void 0);
              l += 1;
            },
            function (t, e) {
              var o = n.children[l];
              (o._$update = !0), e && e(o), (l += 1);
            },
            function (t, e) {
              var o;
              void 0 !== e
                ? (((o = n.children[l])._$update = !0),
                  a.handleChildrenUpdate(t, o, void 0, void 0),
                  (l += 1))
                : (((o = n.children[l])._$update = !0),
                  a.handleChildrenUpdate(t, o, i, r),
                  (l += 1));
            },
            void 0,
            void 0
          );
        }),
        (t.prototype.l = function (t, e, n) {}),
        (t.prototype.i = function (t, e) {
          t._$update ? t.n.push("id") : (t.attr.id = e);
        }),
        (t.prototype.c = function (t, e) {
          t._$update ? t.n.push("class") : (t.attr.class = e);
        }),
        (t.prototype.y = function (t, e) {
          t._$update ? t.n.push("style") : (t.attr.style = e);
        }),
        (t.prototype.d = function (t, e, n) {
          var o = "data-".concat(e.replace(/([A-Z])/g, "-$1").toLowerCase());
          t._$update ? t.n.push(o) : (t.attr[o] = n);
        }),
        (t.prototype.m = function (t, e, n) {
          var o = "mark:".concat(e);
          t._$update ? t.n.push(o) : (t.attr[o] = n);
        }),
        (t.prototype.v = function (t, e, n, o, i, r, a) {
          var l;
          l = r ? "capture-" : "";
          var c = ""
            .concat((l += o ? "catch" : i ? "mut-bind" : "bind"), ":")
            .concat(e);
          t._$update
            ? t.n.push(c)
            : "string" == typeof n
            ? (t.attr[c] = (function (t) {
                return null == t ? "" : String(t);
              })(n))
            : ((t.attr["$wxs:".concat(c)] = n),
              "function" != typeof t.attr.$gdc &&
                (t.attr.$gdc = function (t) {
                  return t;
                }));
        }),
        (t.prototype.sd = function (t, e) {
          t.wxScopeData = e;
        }),
        (t.prototype.r = function (t, e, n, o) {
          var r = ("function" == typeof n ? "$wxs:" : "") + i(e);
          t._$update
            ? t.n.push(r)
            : ((t.attr[r] = n),
              1 === (null == o ? void 0 : o.length) &&
                (t.rawAttr || (t.rawAttr = {}), (t.rawAttr[r] = o[0])),
              "function" == typeof n &&
                "function" != typeof t.attr.$gdc &&
                (t.attr.$gdc = function (t) {
                  return t;
                }));
        }),
        (t.prototype.wl = function (t, e, n) {
          var o = "worklet:".concat(e);
          t._$update ? t.n.push(o) : (t.attr[o] = n);
        }),
        (t.prototype.p = function (t, e, n) {
          var o = "$wxs:change:".concat(i(e));
          if (t._$update) t.n.push(o);
          else {
            var r = this.changePropFilter(n);
            t.attr[o] = r;
          }
        }),
        (t.prototype.setFnFilter = function (t, e) {
          (this.changePropFilter = t), (this.eventListenerFilter = e);
        }),
        t
      );
    })(),
    a = function () {
      return {
        C: function (t, e, n, o, i, r) {
          r("");
        },
      };
    },
    l = function (t, e, n) {
      for (var o = t, i = 0; i < e.length; i += 1) {
        var r = e[i];
        o[r] || (o[r] = {}), (o = o[r]);
      }
      o[n] = !0;
    },
    c = function (t, e, n) {
      if (Array.isArray(t))
        for (var o = 0; o < t.length; o += 1)
          "object" == typeof t[o] &&
            null !== t[o] &&
            (t[o].__wxspec__
              ? ((t[o] = t[o].__value__),
                n && l(e, n, o),
                "object" == typeof t[o] && null !== t[o] && c(t[o], e, null))
              : (null == n || n.push(o), c(t[o], e, n), null == n || n.pop()));
      else
        Object.keys(t).forEach(function (o) {
          "object" == typeof t[o] &&
            null !== t[o] &&
            (t[o].__wxspec__
              ? ((t[o] = t[o].__value__),
                n && l(e, n, o),
                "object" == typeof t[o] && null !== t[o] && c(t[o], e, null))
              : (null == n || n.push(o), c(t[o], e, n), null == n || n.pop()));
        });
    },
    _ = function (t) {
      var e = { group: t.content, list: t.groupList || Object.create(null) };
      return [
        function () {
          var t = !0;
          return function (n) {
            var o = {};
            "object" == typeof n && null !== n && c(n, o, []);
            var i = e.group("") || a,
              l = new r(i);
            return t ? ((t = !1), l.create(n)) : l.update(n, o);
          };
        },
      ];
    },
    p = (function () {
      function t(t, e) {
        (this._$compiledTemplateMap = Object.create(null)),
          (this._$compiledScripts = Object.create(null)),
          (this._$runtimeGlobals = null),
          (this._$rnd = Math.random()),
          (this.gdc = function (t) {
            return t;
          }),
          (this._$global = t),
          (this._$pathPrefix = e);
      }
      return (
        (t.prototype.addComponentStaticConfig = function (t, e) {
          (this._$global.__wxAppCode__ = this._$global.__wxAppCode__ || {}),
            (this._$global.__wxAppCode__[
              "".concat(this._$pathPrefix).concat(t, ".json")
            ] = e);
        }),
        (t.prototype.setRuntimeGlobals = function (t) {
          null === this._$runtimeGlobals &&
            ((this._$runtimeGlobals = t()),
            (this.gdc = this._$runtimeGlobals.gdc));
        }),
        (t.prototype.batchAddCompiledScripts = function (t) {
          if (null === this._$runtimeGlobals)
            throw new Error(
              "Framework inner error: runtimes not ready on batchAddCompiledScripts"
            );
          t(
            this._$compiledScripts,
            this._$runtimeGlobals.D,
            this._$runtimeGlobals.Q,
            this._$runtimeGlobals.gdc
          );
        }),
        (t.prototype.batchAddCompiledTemplate = function (t) {
          var e = this;
          if (
            ((this._$global.__wxAppCode__ = this._$global.__wxAppCode__ || {}),
            null === this._$runtimeGlobals)
          )
            throw new Error(
              "Framework inner error: runtimes not ready on batchAddCompiledTemplate"
            );
          var n = t(
            this._$compiledTemplateMap,
            this._$compiledScripts,
            this._$runtimeGlobals.D,
            this._$runtimeGlobals.Q,
            this._$runtimeGlobals.gdc,
            this._$runtimeGlobals.X,
            this._$runtimeGlobals.Y,
            this._$runtimeGlobals.Z
          );
          Object.keys(n).forEach(function (t) {
            var o = n[t];
            (e._$compiledTemplateMap[t] = o),
              (e._$global.__wxAppCode__[
                "".concat(e._$pathPrefix).concat(t, ".wxml")
              ] = _({ groupList: e._$compiledTemplateMap, content: o }));
          });
        }),
        (t.prototype.addCompiledTemplate = function (t, e) {
          (this._$global.__wxAppCode__ = this._$global.__wxAppCode__ || {}),
            (this._$compiledTemplateMap[t] = e.content),
            (this._$global.__wxAppCode__[
              "".concat(this._$pathPrefix).concat(t, ".wxml")
            ] = _(e));
        }),
        (t.prototype.addTemplateDependencies = function (t, e) {
          var n;
          this._$global.__WXML_DEP__ = this._$global.__WXML_DEP__ || {};
          var o = "./".concat(t, ".wxml");
          Array.isArray(this._$global.__WXML_DEP__[o]) ||
            (this._$global.__WXML_DEP__[o] = []),
            (n = this._$global.__WXML_DEP__[o]).push.apply(
              n,
              e.map(function (t) {
                return "./".concat(t, ".wxml");
              })
            );
        }),
        (t.prototype.enableCodeChunk = function () {
          void 0 === this._$global.__LAZY_CODE_LOADING_CHUNK_MAP__ &&
            (this._$global.__LAZY_CODE_LOADING_CHUNK_MAP__ = {});
        }),
        (t.prototype.initializeCodeChunk = function (t, e) {
          var n = this._$global.__LAZY_CODE_LOADING_CHUNK_MAP__;
          e.forEach(function (e) {
            n[e] = n[e] || t || "";
          });
        }),
        (t.prototype.setStyleScope = function () {}),
        (t.prototype.createWxsStateObject = function () {
          var t = Object.create(null);
          return (t.__isWxsState__ = this._$rnd), t;
        }),
        (t.prototype.isWxsStateObject = function (t) {
          return t.__isWxsState__ === this._$rnd;
        }),
        t
      );
    })();
  void 0 === __wxCodeSpace__
    ? (__wxCodeSpace__ = new p(__globalForCodeSpace__, ""))
    : null ===
        (t = null == __wxCodeSpace__ ? void 0 : __wxCodeSpace__.initPolyfill) ||
      void 0 === t ||
      t.call(__wxCodeSpace__, p);
})(),
  (__globalForCodeSpace__ = void 0);
__wxCodeSpace__.setRuntimeGlobals(function () {
  var X = function (a) {
    return a == null ? Object.create(null) : a;
  };
  var Y = function (a) {
    return a == null ? "" : String(a);
  };
  var Z = function (a, b) {
    if (a === true) return true;
    if (a) return a[b];
  };
  var D = (() => {
    var modules = Object.create(null);
    var load = (filename) => {
      var module = modules[filename];
      if (!module) throw new Error("no such WXS module: " + filename);
      if (!module.loaded) {
        module.loaded = true;
        var require = (rel) => {
          var slices;
          if (rel[0] === "/") {
            slices = rel.split("/");
          } else {
            slices = filename.split("/").slice(0, -1).concat(rel.split("/"));
          }
          var normalized = [];
          slices.forEach((slice) => {
            if (slice === "" || slice === ".") return;
            if (slice === "..") {
              normalized.pop();
            } else {
              normalized.push(slice);
            }
          });
          return load(normalized.join("/"));
        };
        module.loader.call(null, require, module.exports, module);
      }
      return module.exports;
    };
    return (filename, func) => {
      modules[filename] = { exports: {}, loader: func, loaded: false };
      return () => load(filename);
    };
  })();
  var Q = { A: (x) => x, B: (x) => x };
  var gdc = (function () {
    var e = (function () {
      return void 0 !== this
        ? this
        : "undefined" != typeof globalThis
        ? globalThis
        : "undefined" != typeof self
        ? self
        : "undefined" != typeof window
        ? window
        : "undefined" != typeof global
        ? global
        : {};
    })();
    return function (n, t, o, i = e) {
      if (null == n) return n;
      if (
        "undefined" != typeof __wxCodeSpace__ &&
        "function" == typeof __wxCodeSpace__.isWxsStateObject &&
        __wxCodeSpace__.isWxsStateObject(n)
      )
        return n;
      if ("string" == typeof n || "boolean" == typeof n || "number" == typeof n)
        return n;
      if (Array.isArray(n)) {
        const e = [];
        for (let i = 0; i < n.length; i++) e.push(gdc(n[i], t, o, n));
        return e;
      }
      if (n instanceof Date) {
        const e = new Date();
        return e.setTime(n.getTime()), e;
      }
      if (n instanceof RegExp) {
        let e = "";
        return (
          n.global && (e += "g"),
          n.ignoreCase && (e += "i"),
          n.multiline && (e += "m"),
          new RegExp(n.source, e)
        );
      }
      if ("object" == typeof n) {
        const e = {};
        for (let i in n)
          Object.prototype.hasOwnProperty.call(n, i) &&
            (void 0 === t
              ? (e[i.substring(3)] = gdc(n[i], t, o, n))
              : (e[t + i] = gdc(n[i], t, o, n)));
        return e;
      }
      return "function" == typeof n
        ? 1 === o
          ? null
          : function (...e) {
              const o = gdc(e, void 0 === t ? "nv_" : void 0),
                r = n.apply(i, o);
              return gdc(r, t);
            }
        : null;
    };
  })();
  return { X: X, Y: Y, Z: Z, D: D, Q: Q, gdc: gdc };
});
("undefined" != typeof __WXML_GLOBAL__ &&
  void 0 !== __WXML_GLOBAL__.wxs_nf_init) ||
  (Object.defineProperty(Object.prototype, "nv_constructor", {
    writable: !0,
    value: "Object",
  }),
  Object.defineProperty(Object.prototype, "nv_toString", {
    writable: !0,
    value: function () {
      return "[object Object]";
    },
  }),
  Object.defineProperty(Function.prototype, "nv_constructor", {
    writable: !0,
    value: "Function",
  }),
  Object.defineProperty(Function.prototype, "nv_length", {
    get: function () {
      return this.length;
    },
    set: function () {},
  }),
  Object.defineProperty(Function.prototype, "nv_toString", {
    writable: !0,
    value: function () {
      return "[function Function]";
    },
  }),
  Object.defineProperty(Array.prototype, "nv_toString", {
    writable: !0,
    value: function () {
      return this.nv_join();
    },
  }),
  Object.defineProperty(Array.prototype, "nv_join", {
    writable: !0,
    value: function (e) {
      e = null == e ? "," : e;
      for (var t = "", r = 0; r < this.length; ++r)
        0 != r && (t += e),
          null == this[r] || null == this[r]
            ? (t += "")
            : "function" == typeof this[r]
            ? (t += this[r].nv_toString())
            : "object" == typeof this[r] && "Array" === this[r].nv_constructor
            ? (t += this[r].nv_join())
            : (t += this[r].toString());
      return t;
    },
  }),
  Object.defineProperty(Array.prototype, "nv_constructor", {
    writable: !0,
    value: "Array",
  }),
  Object.defineProperty(Array.prototype, "nv_concat", {
    writable: !0,
    value: Array.prototype.concat,
  }),
  Object.defineProperty(Array.prototype, "nv_pop", {
    writable: !0,
    value: Array.prototype.pop,
  }),
  Object.defineProperty(Array.prototype, "nv_push", {
    writable: !0,
    value: Array.prototype.push,
  }),
  Object.defineProperty(Array.prototype, "nv_reverse", {
    writable: !0,
    value: Array.prototype.reverse,
  }),
  Object.defineProperty(Array.prototype, "nv_shift", {
    writable: !0,
    value: Array.prototype.shift,
  }),
  Object.defineProperty(Array.prototype, "nv_slice", {
    writable: !0,
    value: Array.prototype.slice,
  }),
  Object.defineProperty(Array.prototype, "nv_sort", {
    writable: !0,
    value: Array.prototype.sort,
  }),
  Object.defineProperty(Array.prototype, "nv_splice", {
    writable: !0,
    value: Array.prototype.splice,
  }),
  Object.defineProperty(Array.prototype, "nv_unshift", {
    writable: !0,
    value: Array.prototype.unshift,
  }),
  Object.defineProperty(Array.prototype, "nv_indexOf", {
    writable: !0,
    value: Array.prototype.indexOf,
  }),
  Object.defineProperty(Array.prototype, "nv_lastIndexOf", {
    writable: !0,
    value: Array.prototype.lastIndexOf,
  }),
  Object.defineProperty(Array.prototype, "nv_every", {
    writable: !0,
    value: Array.prototype.every,
  }),
  Object.defineProperty(Array.prototype, "nv_some", {
    writable: !0,
    value: Array.prototype.some,
  }),
  Object.defineProperty(Array.prototype, "nv_forEach", {
    writable: !0,
    value: Array.prototype.forEach,
  }),
  Object.defineProperty(Array.prototype, "nv_map", {
    writable: !0,
    value: Array.prototype.map,
  }),
  Object.defineProperty(Array.prototype, "nv_filter", {
    writable: !0,
    value: Array.prototype.filter,
  }),
  Object.defineProperty(Array.prototype, "nv_reduce", {
    writable: !0,
    value: Array.prototype.reduce,
  }),
  Object.defineProperty(Array.prototype, "nv_reduceRight", {
    writable: !0,
    value: Array.prototype.reduceRight,
  }),
  Object.defineProperty(Array.prototype, "nv_length", {
    get: function () {
      return this.length;
    },
    set: function (e) {
      this.length = e;
    },
  }),
  Object.defineProperty(String.prototype, "nv_constructor", {
    writable: !0,
    value: "String",
  }),
  Object.defineProperty(String.prototype, "nv_toString", {
    writable: !0,
    value: String.prototype.toString,
  }),
  Object.defineProperty(String.prototype, "nv_valueOf", {
    writable: !0,
    value: String.prototype.valueOf,
  }),
  Object.defineProperty(String.prototype, "nv_charAt", {
    writable: !0,
    value: String.prototype.charAt,
  }),
  Object.defineProperty(String.prototype, "nv_charCodeAt", {
    writable: !0,
    value: String.prototype.charCodeAt,
  }),
  Object.defineProperty(String.prototype, "nv_concat", {
    writable: !0,
    value: String.prototype.concat,
  }),
  Object.defineProperty(String.prototype, "nv_indexOf", {
    writable: !0,
    value: String.prototype.indexOf,
  }),
  Object.defineProperty(String.prototype, "nv_lastIndexOf", {
    writable: !0,
    value: String.prototype.lastIndexOf,
  }),
  Object.defineProperty(String.prototype, "nv_localeCompare", {
    writable: !0,
    value: String.prototype.localeCompare,
  }),
  Object.defineProperty(String.prototype, "nv_match", {
    writable: !0,
    value: String.prototype.match,
  }),
  Object.defineProperty(String.prototype, "nv_replace", {
    writable: !0,
    value: String.prototype.replace,
  }),
  Object.defineProperty(String.prototype, "nv_search", {
    writable: !0,
    value: String.prototype.search,
  }),
  Object.defineProperty(String.prototype, "nv_slice", {
    writable: !0,
    value: String.prototype.slice,
  }),
  Object.defineProperty(String.prototype, "nv_split", {
    writable: !0,
    value: String.prototype.split,
  }),
  Object.defineProperty(String.prototype, "nv_substring", {
    writable: !0,
    value: String.prototype.substring,
  }),
  Object.defineProperty(String.prototype, "nv_toLowerCase", {
    writable: !0,
    value: String.prototype.toLowerCase,
  }),
  Object.defineProperty(String.prototype, "nv_toLocaleLowerCase", {
    writable: !0,
    value: String.prototype.toLocaleLowerCase,
  }),
  Object.defineProperty(String.prototype, "nv_toUpperCase", {
    writable: !0,
    value: String.prototype.toUpperCase,
  }),
  Object.defineProperty(String.prototype, "nv_toLocaleUpperCase", {
    writable: !0,
    value: String.prototype.toLocaleUpperCase,
  }),
  Object.defineProperty(String.prototype, "nv_trim", {
    writable: !0,
    value: String.prototype.trim,
  }),
  Object.defineProperty(String.prototype, "nv_length", {
    get: function () {
      return this.length;
    },
    set: function (e) {
      this.length = e;
    },
  }),
  Object.defineProperty(Boolean.prototype, "nv_constructor", {
    writable: !0,
    value: "Boolean",
  }),
  Object.defineProperty(Boolean.prototype, "nv_toString", {
    writable: !0,
    value: Boolean.prototype.toString,
  }),
  Object.defineProperty(Boolean.prototype, "nv_valueOf", {
    writable: !0,
    value: Boolean.prototype.valueOf,
  }),
  Object.defineProperty(Number, "nv_MAX_VALUE", {
    writable: !1,
    value: Number.MAX_VALUE,
  }),
  Object.defineProperty(Number, "nv_MIN_VALUE", {
    writable: !1,
    value: Number.MIN_VALUE,
  }),
  Object.defineProperty(Number, "nv_NEGATIVE_INFINITY", {
    writable: !1,
    value: Number.NEGATIVE_INFINITY,
  }),
  Object.defineProperty(Number, "nv_POSITIVE_INFINITY", {
    writable: !1,
    value: Number.POSITIVE_INFINITY,
  }),
  Object.defineProperty(Number.prototype, "nv_constructor", {
    writable: !0,
    value: "Number",
  }),
  Object.defineProperty(Number.prototype, "nv_toString", {
    writable: !0,
    value: Number.prototype.toString,
  }),
  Object.defineProperty(Number.prototype, "nv_toLocaleString", {
    writable: !0,
    value: Number.prototype.toLocaleString,
  }),
  Object.defineProperty(Number.prototype, "nv_valueOf", {
    writable: !0,
    value: Number.prototype.valueOf,
  }),
  Object.defineProperty(Number.prototype, "nv_toFixed", {
    writable: !0,
    value: Number.prototype.toFixed,
  }),
  Object.defineProperty(Number.prototype, "nv_toExponential", {
    writable: !0,
    value: Number.prototype.toExponential,
  }),
  Object.defineProperty(Number.prototype, "nv_toPrecision", {
    writable: !0,
    value: Number.prototype.toPrecision,
  }),
  Object.defineProperty(Math, "nv_E", { writable: !1, value: Math.E }),
  Object.defineProperty(Math, "nv_LN10", { writable: !1, value: Math.LN10 }),
  Object.defineProperty(Math, "nv_LN2", { writable: !1, value: Math.LN2 }),
  Object.defineProperty(Math, "nv_LOG2E", { writable: !1, value: Math.LOG2E }),
  Object.defineProperty(Math, "nv_LOG10E", {
    writable: !1,
    value: Math.LOG10E,
  }),
  Object.defineProperty(Math, "nv_PI", { writable: !1, value: Math.PI }),
  Object.defineProperty(Math, "nv_SQRT1_2", {
    writable: !1,
    value: Math.SQRT1_2,
  }),
  Object.defineProperty(Math, "nv_SQRT2", { writable: !1, value: Math.SQRT2 }),
  Object.defineProperty(Math, "nv_abs", { writable: !1, value: Math.abs }),
  Object.defineProperty(Math, "nv_acos", { writable: !1, value: Math.acos }),
  Object.defineProperty(Math, "nv_asin", { writable: !1, value: Math.asin }),
  Object.defineProperty(Math, "nv_atan", { writable: !1, value: Math.atan }),
  Object.defineProperty(Math, "nv_atan2", { writable: !1, value: Math.atan2 }),
  Object.defineProperty(Math, "nv_ceil", { writable: !1, value: Math.ceil }),
  Object.defineProperty(Math, "nv_cos", { writable: !1, value: Math.cos }),
  Object.defineProperty(Math, "nv_exp", { writable: !1, value: Math.exp }),
  Object.defineProperty(Math, "nv_floor", { writable: !1, value: Math.floor }),
  Object.defineProperty(Math, "nv_log", { writable: !1, value: Math.log }),
  Object.defineProperty(Math, "nv_max", { writable: !1, value: Math.max }),
  Object.defineProperty(Math, "nv_min", { writable: !1, value: Math.min }),
  Object.defineProperty(Math, "nv_pow", { writable: !1, value: Math.pow }),
  Object.defineProperty(Math, "nv_random", {
    writable: !1,
    value: Math.random,
  }),
  Object.defineProperty(Math, "nv_round", { writable: !1, value: Math.round }),
  Object.defineProperty(Math, "nv_sin", { writable: !1, value: Math.sin }),
  Object.defineProperty(Math, "nv_sqrt", { writable: !1, value: Math.sqrt }),
  Object.defineProperty(Math, "nv_tan", { writable: !1, value: Math.tan }),
  Object.defineProperty(Date.prototype, "nv_constructor", {
    writable: !0,
    value: "Date",
  }),
  Object.defineProperty(Date, "nv_parse", { writable: !0, value: Date.parse }),
  Object.defineProperty(Date, "nv_UTC", { writable: !0, value: Date.UTC }),
  Object.defineProperty(Date, "nv_now", { writable: !0, value: Date.now }),
  Object.defineProperty(Date.prototype, "nv_toString", {
    writable: !0,
    value: Date.prototype.toString,
  }),
  Object.defineProperty(Date.prototype, "nv_toDateString", {
    writable: !0,
    value: Date.prototype.toDateString,
  }),
  Object.defineProperty(Date.prototype, "nv_toTimeString", {
    writable: !0,
    value: Date.prototype.toTimeString,
  }),
  Object.defineProperty(Date.prototype, "nv_toLocaleString", {
    writable: !0,
    value: Date.prototype.toLocaleString,
  }),
  Object.defineProperty(Date.prototype, "nv_toLocaleDateString", {
    writable: !0,
    value: Date.prototype.toLocaleDateString,
  }),
  Object.defineProperty(Date.prototype, "nv_toLocaleTimeString", {
    writable: !0,
    value: Date.prototype.toLocaleTimeString,
  }),
  Object.defineProperty(Date.prototype, "nv_valueOf", {
    writable: !0,
    value: Date.prototype.valueOf,
  }),
  Object.defineProperty(Date.prototype, "nv_getTime", {
    writable: !0,
    value: Date.prototype.getTime,
  }),
  Object.defineProperty(Date.prototype, "nv_getFullYear", {
    writable: !0,
    value: Date.prototype.getFullYear,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCFullYear", {
    writable: !0,
    value: Date.prototype.getUTCFullYear,
  }),
  Object.defineProperty(Date.prototype, "nv_getMonth", {
    writable: !0,
    value: Date.prototype.getMonth,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCMonth", {
    writable: !0,
    value: Date.prototype.getUTCMonth,
  }),
  Object.defineProperty(Date.prototype, "nv_getDate", {
    writable: !0,
    value: Date.prototype.getDate,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCDate", {
    writable: !0,
    value: Date.prototype.getUTCDate,
  }),
  Object.defineProperty(Date.prototype, "nv_getDay", {
    writable: !0,
    value: Date.prototype.getDay,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCDay", {
    writable: !0,
    value: Date.prototype.getUTCDay,
  }),
  Object.defineProperty(Date.prototype, "nv_getHours", {
    writable: !0,
    value: Date.prototype.getHours,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCHours", {
    writable: !0,
    value: Date.prototype.getUTCHours,
  }),
  Object.defineProperty(Date.prototype, "nv_getMinutes", {
    writable: !0,
    value: Date.prototype.getMinutes,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCMinutes", {
    writable: !0,
    value: Date.prototype.getUTCMinutes,
  }),
  Object.defineProperty(Date.prototype, "nv_getSeconds", {
    writable: !0,
    value: Date.prototype.getSeconds,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCSeconds", {
    writable: !0,
    value: Date.prototype.getUTCSeconds,
  }),
  Object.defineProperty(Date.prototype, "nv_getMilliseconds", {
    writable: !0,
    value: Date.prototype.getMilliseconds,
  }),
  Object.defineProperty(Date.prototype, "nv_getUTCMilliseconds", {
    writable: !0,
    value: Date.prototype.getUTCMilliseconds,
  }),
  Object.defineProperty(Date.prototype, "nv_getTimezoneOffset", {
    writable: !0,
    value: Date.prototype.getTimezoneOffset,
  }),
  Object.defineProperty(Date.prototype, "nv_setTime", {
    writable: !0,
    value: Date.prototype.setTime,
  }),
  Object.defineProperty(Date.prototype, "nv_setMilliseconds", {
    writable: !0,
    value: Date.prototype.setMilliseconds,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCMilliseconds", {
    writable: !0,
    value: Date.prototype.setUTCMilliseconds,
  }),
  Object.defineProperty(Date.prototype, "nv_setSeconds", {
    writable: !0,
    value: Date.prototype.setSeconds,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCSeconds", {
    writable: !0,
    value: Date.prototype.setUTCSeconds,
  }),
  Object.defineProperty(Date.prototype, "nv_setMinutes", {
    writable: !0,
    value: Date.prototype.setMinutes,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCMinutes", {
    writable: !0,
    value: Date.prototype.setUTCMinutes,
  }),
  Object.defineProperty(Date.prototype, "nv_setHours", {
    writable: !0,
    value: Date.prototype.setHours,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCHours", {
    writable: !0,
    value: Date.prototype.setUTCHours,
  }),
  Object.defineProperty(Date.prototype, "nv_setDate", {
    writable: !0,
    value: Date.prototype.setDate,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCDate", {
    writable: !0,
    value: Date.prototype.setUTCDate,
  }),
  Object.defineProperty(Date.prototype, "nv_setMonth", {
    writable: !0,
    value: Date.prototype.setMonth,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCMonth", {
    writable: !0,
    value: Date.prototype.setUTCMonth,
  }),
  Object.defineProperty(Date.prototype, "nv_setFullYear", {
    writable: !0,
    value: Date.prototype.setFullYear,
  }),
  Object.defineProperty(Date.prototype, "nv_setUTCFullYear", {
    writable: !0,
    value: Date.prototype.setUTCFullYear,
  }),
  Object.defineProperty(Date.prototype, "nv_toUTCString", {
    writable: !0,
    value: Date.prototype.toUTCString,
  }),
  Object.defineProperty(Date.prototype, "nv_toISOString", {
    writable: !0,
    value: Date.prototype.toISOString,
  }),
  Object.defineProperty(Date.prototype, "nv_toJSON", {
    writable: !0,
    value: Date.prototype.toJSON,
  }),
  Object.defineProperty(RegExp.prototype, "nv_constructor", {
    writable: !0,
    value: "RegExp",
  }),
  Object.defineProperty(RegExp.prototype, "nv_exec", {
    writable: !0,
    value: RegExp.prototype.exec,
  }),
  Object.defineProperty(RegExp.prototype, "nv_test", {
    writable: !0,
    value: RegExp.prototype.test,
  }),
  Object.defineProperty(RegExp.prototype, "nv_toString", {
    writable: !0,
    value: RegExp.prototype.toString,
  }),
  Object.defineProperty(RegExp.prototype, "nv_source", {
    get: function () {
      return this.source;
    },
    set: function () {},
  }),
  Object.defineProperty(RegExp.prototype, "nv_global", {
    get: function () {
      return this.global;
    },
    set: function () {},
  }),
  Object.defineProperty(RegExp.prototype, "nv_ignoreCase", {
    get: function () {
      return this.ignoreCase;
    },
    set: function () {},
  }),
  Object.defineProperty(RegExp.prototype, "nv_multiline", {
    get: function () {
      return this.multiline;
    },
    set: function () {},
  }),
  Object.defineProperty(RegExp.prototype, "nv_lastIndex", {
    get: function () {
      return this.lastIndex;
    },
    set: function (e) {
      this.lastIndex = e;
    },
  })),
  "undefined" != typeof __WXML_GLOBAL__ && (__WXML_GLOBAL__.wxs_nf_init = !0);
var nv_getDate = function () {
    var e = Array.prototype.slice.call(arguments);
    return e.unshift(Date), new (Function.prototype.bind.apply(Date, e))();
  },
  nv_getRegExp = function () {
    var e = Array.prototype.slice.call(arguments);
    return e.unshift(RegExp), new (Function.prototype.bind.apply(RegExp, e))();
  },
  nv_console = {
    nv_log: function (...e) {
      for (var t = "WXSRT:", r = 0; r < e.length; ++r) t += e[r] + " ";
      console.log(t);
    },
  },
  nv_parseInt = parseInt,
  nv_parseFloat = parseFloat,
  nv_isNaN = isNaN,
  nv_isFinite = isFinite,
  nv_decodeURI = decodeURI,
  nv_decodeURIComponent = decodeURIComponent,
  nv_encodeURI = encodeURI,
  nv_encodeURIComponent = encodeURIComponent,
  nv_JSON = {};
!(function () {
  var e = __wxCodeSpace__.gdc;
  (nv_JSON.nv_stringify = function (t) {
    return JSON.stringify(t), JSON.stringify(e(t, void 0, 1));
  }),
    (nv_JSON.nv_parse = function (t) {
      if (void 0 !== t) {
        var r = JSON.parse(t);
        return e(r, "nv_");
      }
    });
})();
__wxCodeSpace__.addComponentStaticConfig(
  "components/privacyPopup/privacyPopup",
  { component: true, usingComponents: {} }
);
__wxCodeSpace__.addComponentStaticConfig("pages/index/index", {
  usingComponents: {
    "privacy-popup": "../../components/privacyPopup/privacyPopup",
  },
});
__wxCodeSpace__.addComponentStaticConfig("pages/rank/rank", {
  usingComponents: {},
  navigationBarTitleText: "跑步排行榜",
  disableScroll: true,
});
__wxCodeSpace__.addComponentStaticConfig("pages/record/record", {
  usingComponents: {},
  navigationBarTitleText: "我的跑步记录",
});
__wxCodeSpace__.addComponentStaticConfig("pages/run/run", {
  usingComponents: {},
  disableScroll: true,
});
__wxCodeSpace__.setStyleScope("components/privacyPopup/privacyPopup", "A");
__wxCodeSpace__.setStyleScope("pages/index/index", undefined);
__wxCodeSpace__.setStyleScope("pages/rank/rank", undefined);
__wxCodeSpace__.setStyleScope("pages/record/record", undefined);
__wxCodeSpace__.setStyleScope("pages/run/run", undefined);
var __wxAppData = __wxAppData || {};
var __wxRoute = __wxRoute || "";
var __wxRouteBegin = __wxRouteBegin || "";
var __wxAppCode__ = __wxAppCode__ || {};
var global = global || {};
var __WXML_GLOBAL__ = __WXML_GLOBAL__ || {
  entrys: {},
  defines: {},
  modules: {},
  ops: [],
  wxs_nf_init: undefined,
  total_ops: 0,
};
var __wxAppCurrentFile__ = __wxAppCurrentFile__ || "";
var Component = Component || function () {};
var definePlugin = definePlugin || function () {};
var requirePlugin = requirePlugin || function () {};
var Behavior = Behavior || function () {};
var __vd_version_info__ = __vd_version_info__ || {};
var __GWX_GLOBAL__ = __GWX_GLOBAL__ || {};
__wxCodeSpace__.batchAddCompiledScripts(function (R, D, Q, gdc) {});
__wxRoute = undefined;
__wxRouteBegin = undefined;
__wxAppCurrentFile__ = undefined;
define(
  "7150F4A29100CF2F17369CA5E50C2D82.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var e = wx.getRealtimeLogManager ? wx.getRealtimeLogManager() : null;
    module.exports = {
      debug: function () {
        e && e.debug.apply(e, arguments);
      },
      info: function () {
        e && e.info.apply(e, arguments);
      },
      warn: function () {
        e && e.warn.apply(e, arguments);
      },
      error: function () {
        e && e.error.apply(e, arguments);
      },
      setFilterMsg: function (t) {
        e && e.setFilterMsg && "string" == typeof t && e.setFilterMsg(t);
      },
      addFilterMsg: function (t) {
        e && e.addFilterMsg && "string" == typeof t && e.addFilterMsg(t);
      },
    };
  },
  {
    isPage: false,
    isComponent: false,
    currentFile: "7150F4A29100CF2F17369CA5E50C2D82.js",
  }
);
__wxRoute = undefined;
__wxRouteBegin = undefined;
__wxAppCurrentFile__ = undefined;
define(
  "@babel/runtime/helpers/asyncToGenerator.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    function asyncGeneratorStep(n, e, r, t, o, a, c) {
      try {
        var i = n[a](c),
          u = i.value;
      } catch (n) {
        return void r(n);
      }
      i.done ? e(u) : Promise.resolve(u).then(t, o);
    }
    function _asyncToGenerator(n) {
      return function () {
        var e = this,
          r = arguments;
        return new Promise(function (t, o) {
          var a = n.apply(e, r);
          function c(n) {
            asyncGeneratorStep(a, t, o, c, i, "next", n);
          }
          function i(n) {
            asyncGeneratorStep(a, t, o, c, i, "throw", n);
          }
          c(void 0);
        });
      };
    }
    module.exports = _asyncToGenerator;
  },
  {
    isPage: false,
    isComponent: false,
    currentFile: "@babel/runtime/helpers/asyncToGenerator.js",
  }
);
__wxRoute = undefined;
__wxRouteBegin = undefined;
__wxAppCurrentFile__ = undefined;
define(
  "@babel/runtime/helpers/regeneratorRuntime.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    var t = require("./typeof");
    function r() {
      (module.exports = r =
        function () {
          return e;
        }),
        (module.exports.__esModule = !0),
        (module.exports.default = module.exports);
      var e = {},
        n = Object.prototype,
        o = n.hasOwnProperty,
        i =
          Object.defineProperty ||
          function (t, r, e) {
            t[r] = e.value;
          },
        a = "function" == typeof Symbol ? Symbol : {},
        c = a.iterator || "@@iterator",
        u = a.asyncIterator || "@@asyncIterator",
        l = a.toStringTag || "@@toStringTag";
      function h(t, r, e) {
        return (
          Object.defineProperty(t, r, {
            value: e,
            enumerable: !0,
            configurable: !0,
            writable: !0,
          }),
          t[r]
        );
      }
      try {
        h({}, "");
      } catch (t) {
        h = function (t, r, e) {
          return (t[r] = e);
        };
      }
      function f(t, r, e, n) {
        var o = r && r.prototype instanceof d ? r : d,
          a = Object.create(o.prototype),
          c = new k(n || []);
        return i(a, "_invoke", { value: E(t, e, c) }), a;
      }
      function s(t, r, e) {
        try {
          return { type: "normal", arg: t.call(r, e) };
        } catch (t) {
          return { type: "throw", arg: t };
        }
      }
      e.wrap = f;
      var p = {};
      function d() {}
      function v() {}
      function y() {}
      var g = {};
      h(g, c, function () {
        return this;
      });
      var m = Object.getPrototypeOf,
        w = m && m(m(G([])));
      w && w !== n && o.call(w, c) && (g = w);
      var x = (y.prototype = d.prototype = Object.create(g));
      function L(t) {
        ["next", "throw", "return"].forEach(function (r) {
          h(t, r, function (t) {
            return this._invoke(r, t);
          });
        });
      }
      function b(r, e) {
        function n(i, a, c, u) {
          var l = s(r[i], r, a);
          if ("throw" !== l.type) {
            var h = l.arg,
              f = h.value;
            return f && "object" == t(f) && o.call(f, "__await")
              ? e.resolve(f.__await).then(
                  function (t) {
                    n("next", t, c, u);
                  },
                  function (t) {
                    n("throw", t, c, u);
                  }
                )
              : e.resolve(f).then(
                  function (t) {
                    (h.value = t), c(h);
                  },
                  function (t) {
                    return n("throw", t, c, u);
                  }
                );
          }
          u(l.arg);
        }
        var a;
        i(this, "_invoke", {
          value: function (t, r) {
            function o() {
              return new e(function (e, o) {
                n(t, r, e, o);
              });
            }
            return (a = a ? a.then(o, o) : o());
          },
        });
      }
      function E(t, r, e) {
        var n = "suspendedStart";
        return function (o, i) {
          if ("executing" === n)
            throw new Error("Generator is already running");
          if ("completed" === n) {
            if ("throw" === o) throw i;
            return N();
          }
          for (e.method = o, e.arg = i; ; ) {
            var a = e.delegate;
            if (a) {
              var c = _(a, e);
              if (c) {
                if (c === p) continue;
                return c;
              }
            }
            if ("next" === e.method) e.sent = e._sent = e.arg;
            else if ("throw" === e.method) {
              if ("suspendedStart" === n) throw ((n = "completed"), e.arg);
              e.dispatchException(e.arg);
            } else "return" === e.method && e.abrupt("return", e.arg);
            n = "executing";
            var u = s(t, r, e);
            if ("normal" === u.type) {
              if (((n = e.done ? "completed" : "suspendedYield"), u.arg === p))
                continue;
              return { value: u.arg, done: e.done };
            }
            "throw" === u.type &&
              ((n = "completed"), (e.method = "throw"), (e.arg = u.arg));
          }
        };
      }
      function _(t, r) {
        var e = r.method,
          n = t.iterator[e];
        if (void 0 === n)
          return (
            (r.delegate = null),
            ("throw" === e &&
              t.iterator.return &&
              ((r.method = "return"),
              (r.arg = void 0),
              _(t, r),
              "throw" === r.method)) ||
              ("return" !== e &&
                ((r.method = "throw"),
                (r.arg = new TypeError(
                  "The iterator does not provide a '" + e + "' method"
                )))),
            p
          );
        var o = s(n, t.iterator, r.arg);
        if ("throw" === o.type)
          return (r.method = "throw"), (r.arg = o.arg), (r.delegate = null), p;
        var i = o.arg;
        return i
          ? i.done
            ? ((r[t.resultName] = i.value),
              (r.next = t.nextLoc),
              "return" !== r.method && ((r.method = "next"), (r.arg = void 0)),
              (r.delegate = null),
              p)
            : i
          : ((r.method = "throw"),
            (r.arg = new TypeError("iterator result is not an object")),
            (r.delegate = null),
            p);
      }
      function O(t) {
        var r = { tryLoc: t[0] };
        1 in t && (r.catchLoc = t[1]),
          2 in t && ((r.finallyLoc = t[2]), (r.afterLoc = t[3])),
          this.tryEntries.push(r);
      }
      function j(t) {
        var r = t.completion || {};
        (r.type = "normal"), delete r.arg, (t.completion = r);
      }
      function k(t) {
        (this.tryEntries = [{ tryLoc: "root" }]),
          t.forEach(O, this),
          this.reset(!0);
      }
      function G(t) {
        if (t) {
          var r = t[c];
          if (r) return r.call(t);
          if ("function" == typeof t.next) return t;
          if (!isNaN(t.length)) {
            var e = -1,
              n = function r() {
                for (; ++e < t.length; )
                  if (o.call(t, e)) return (r.value = t[e]), (r.done = !1), r;
                return (r.value = void 0), (r.done = !0), r;
              };
            return (n.next = n);
          }
        }
        return { next: N };
      }
      function N() {
        return { value: void 0, done: !0 };
      }
      return (
        (v.prototype = y),
        i(x, "constructor", { value: y, configurable: !0 }),
        i(y, "constructor", { value: v, configurable: !0 }),
        (v.displayName = h(y, l, "GeneratorFunction")),
        (e.isGeneratorFunction = function (t) {
          var r = "function" == typeof t && t.constructor;
          return (
            !!r &&
            (r === v || "GeneratorFunction" === (r.displayName || r.name))
          );
        }),
        (e.mark = function (t) {
          return (
            Object.setPrototypeOf
              ? Object.setPrototypeOf(t, y)
              : ((t.__proto__ = y), h(t, l, "GeneratorFunction")),
            (t.prototype = Object.create(x)),
            t
          );
        }),
        (e.awrap = function (t) {
          return { __await: t };
        }),
        L(b.prototype),
        h(b.prototype, u, function () {
          return this;
        }),
        (e.AsyncIterator = b),
        (e.async = function (t, r, n, o, i) {
          void 0 === i && (i = Promise);
          var a = new b(f(t, r, n, o), i);
          return e.isGeneratorFunction(r)
            ? a
            : a.next().then(function (t) {
                return t.done ? t.value : a.next();
              });
        }),
        L(x),
        h(x, l, "Generator"),
        h(x, c, function () {
          return this;
        }),
        h(x, "toString", function () {
          return "[object Generator]";
        }),
        (e.keys = function (t) {
          var r = Object(t),
            e = [];
          for (var n in r) e.push(n);
          return (
            e.reverse(),
            function t() {
              for (; e.length; ) {
                var n = e.pop();
                if (n in r) return (t.value = n), (t.done = !1), t;
              }
              return (t.done = !0), t;
            }
          );
        }),
        (e.values = G),
        (k.prototype = {
          constructor: k,
          reset: function (t) {
            if (
              ((this.prev = 0),
              (this.next = 0),
              (this.sent = this._sent = void 0),
              (this.done = !1),
              (this.delegate = null),
              (this.method = "next"),
              (this.arg = void 0),
              this.tryEntries.forEach(j),
              !t)
            )
              for (var r in this)
                "t" === r.charAt(0) &&
                  o.call(this, r) &&
                  !isNaN(+r.slice(1)) &&
                  (this[r] = void 0);
          },
          stop: function () {
            this.done = !0;
            var t = this.tryEntries[0].completion;
            if ("throw" === t.type) throw t.arg;
            return this.rval;
          },
          dispatchException: function (t) {
            if (this.done) throw t;
            var r = this;
            function e(e, n) {
              return (
                (a.type = "throw"),
                (a.arg = t),
                (r.next = e),
                n && ((r.method = "next"), (r.arg = void 0)),
                !!n
              );
            }
            for (var n = this.tryEntries.length - 1; n >= 0; --n) {
              var i = this.tryEntries[n],
                a = i.completion;
              if ("root" === i.tryLoc) return e("end");
              if (i.tryLoc <= this.prev) {
                var c = o.call(i, "catchLoc"),
                  u = o.call(i, "finallyLoc");
                if (c && u) {
                  if (this.prev < i.catchLoc) return e(i.catchLoc, !0);
                  if (this.prev < i.finallyLoc) return e(i.finallyLoc);
                } else if (c) {
                  if (this.prev < i.catchLoc) return e(i.catchLoc, !0);
                } else {
                  if (!u)
                    throw new Error("try statement without catch or finally");
                  if (this.prev < i.finallyLoc) return e(i.finallyLoc);
                }
              }
            }
          },
          abrupt: function (t, r) {
            for (var e = this.tryEntries.length - 1; e >= 0; --e) {
              var n = this.tryEntries[e];
              if (
                n.tryLoc <= this.prev &&
                o.call(n, "finallyLoc") &&
                this.prev < n.finallyLoc
              ) {
                var i = n;
                break;
              }
            }
            i &&
              ("break" === t || "continue" === t) &&
              i.tryLoc <= r &&
              r <= i.finallyLoc &&
              (i = null);
            var a = i ? i.completion : {};
            return (
              (a.type = t),
              (a.arg = r),
              i
                ? ((this.method = "next"), (this.next = i.finallyLoc), p)
                : this.complete(a)
            );
          },
          complete: function (t, r) {
            if ("throw" === t.type) throw t.arg;
            return (
              "break" === t.type || "continue" === t.type
                ? (this.next = t.arg)
                : "return" === t.type
                ? ((this.rval = this.arg = t.arg),
                  (this.method = "return"),
                  (this.next = "end"))
                : "normal" === t.type && r && (this.next = r),
              p
            );
          },
          finish: function (t) {
            for (var r = this.tryEntries.length - 1; r >= 0; --r) {
              var e = this.tryEntries[r];
              if (e.finallyLoc === t)
                return this.complete(e.completion, e.afterLoc), j(e), p;
            }
          },
          catch: function (t) {
            for (var r = this.tryEntries.length - 1; r >= 0; --r) {
              var e = this.tryEntries[r];
              if (e.tryLoc === t) {
                var n = e.completion;
                if ("throw" === n.type) {
                  var o = n.arg;
                  j(e);
                }
                return o;
              }
            }
            throw new Error("illegal catch attempt");
          },
          delegateYield: function (t, r, e) {
            return (
              (this.delegate = { iterator: G(t), resultName: r, nextLoc: e }),
              "next" === this.method && (this.arg = void 0),
              p
            );
          },
        }),
        e
      );
    }
    (module.exports = r),
      (module.exports.__esModule = !0),
      (module.exports.default = module.exports);
  },
  {
    isPage: false,
    isComponent: false,
    currentFile: "@babel/runtime/helpers/regeneratorRuntime.js",
  }
);
__wxRoute = undefined;
__wxRouteBegin = undefined;
__wxAppCurrentFile__ = undefined;
define(
  "@babel/runtime/helpers/typeof.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    function _typeof(o) {
      return (
        (module.exports = _typeof =
          "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
            ? function (o) {
                return typeof o;
              }
            : function (o) {
                return o &&
                  "function" == typeof Symbol &&
                  o.constructor === Symbol &&
                  o !== Symbol.prototype
                  ? "symbol"
                  : typeof o;
              }),
        _typeof(o)
      );
    }
    module.exports = _typeof;
  },
  {
    isPage: false,
    isComponent: false,
    currentFile: "@babel/runtime/helpers/typeof.js",
  }
);
__wxRoute = undefined;
__wxRouteBegin = undefined;
__wxAppCurrentFile__ = undefined;
define(
  "D38F48309100CF2FB5E920376AFB2D82.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var e =
      "https://www.shouyun.tech/miniprogram/run_recorder_helper/main_request.php";
    function t(t, n, o) {
      return new Promise(function (r, u) {
        wx.request({
          url: "" == t ? e : t,
          method: n,
          header: { "content-type": "application/json" },
          data: o,
          success: function (e) {
            r(e.data);
          },
          fail: function (e) {
            u(e);
          },
        });
      });
    }
    module.exports = {
      request: t,
      upload: function (t, n, o) {
        return new Promise(function (r, u) {
          wx.uploadFile({
            url: "" == t ? e : t,
            filePath: n,
            name: "file",
            formData: o,
            success: function (e) {
              r(JSON.parse(e.data));
            },
            fail: function (e) {
              u(e);
            },
            complete: function () {},
          });
        });
      },
      format: function (e) {
        return (
          e.getFullYear() +
          "-" +
          (e.getMonth() + 1 < 10
            ? "0" + (e.getMonth() + 1)
            : e.getMonth() + 1) +
          "-" +
          (e.getDate() < 10 ? "0" + e.getDate() : e.getDate()) +
          " " +
          (e.getHours() < 10 ? "0" + e.getHours() : e.getHours()) +
          ":" +
          (e.getMinutes() < 10 ? "0" + e.getMinutes() : e.getMinutes()) +
          ":" +
          (e.getSeconds() < 10 ? "0" + e.getSeconds() : e.getSeconds())
        );
      },
      getImage: function () {
        return new Promise(function (e, n) {
          t(
            "https://apis.map.qq.com/ws/staticmap/v2/?center=39.8802147,116.415794&zoom=10&size=600*300&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|39.8802147,116.415794&key=K2XBZ-DNKRJ-4HDFV-XYOYP-2YTTQ-UAFKX",
            "GET",
            ""
          )
            .then(function (t) {
              e(t);
            })
            .catch(function (e) {
              n(e);
            });
        });
      },
    };
  },
  {
    isPage: false,
    isComponent: false,
    currentFile: "D38F48309100CF2FB5E920376AFB2D82.js",
  }
);
__wxRoute = undefined;
__wxRouteBegin = undefined;
__wxAppCurrentFile__ = undefined;
define(
  "app.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var a = require("D38F48309100CF2FB5E920376AFB2D82.js");
    App({
      checkUpdate: function (a) {
        if (wx.canIUse("getUpdateManager")) {
          var t = wx.getUpdateManager();
          t.onCheckForUpdate(function (e) {
            e.hasUpdate &&
              1 == a &&
              (t.onUpdateReady(function () {
                wx.showModal({
                  title: "更新提示",
                  content: "小程序新版本已经准备好，是否重启应用？",
                  success: function (a) {
                    a.confirm && t.applyUpdate();
                  },
                });
              }),
              t.onUpdateFailed(function () {
                wx.showModal({
                  title: "已经有新版本了哟~",
                  content:
                    "新版本已经上线啦~，请您删除当前小程序，重新搜索打开哟~",
                });
              }));
          });
        } else
          wx.showModal({
            title: "提示",
            content:
              "当前微信版本过低，无法使用该功能，请升级到最新微信版本后重试。",
          });
      },
      onLaunch: function () {
        var t = this;
        wx.login({
          success: function (e) {
            if (e.code) {
              var n = { purpose: "getUpdateInfo", key: { code: e.code } };
              a.request("", "GET", n)
                .then(function (a) {
                  console.log(a);
                  var e = a.data;
                  (t.globalData.openId = e.openid),
                    (t.globalData.todayRunDistance = e.todayDistance),
                    (t.globalData.nickname = e.nickname),
                    (t.globalData.avator = e.avator),
                    (t.globalData.admin = e.admin),
                    t.checkUpdate(e.update),
                    t.getDatacallBack && t.getDatacallBack(e.todayDistance);
                })
                .catch(function (a) {
                  console.log(a), t.getDatacallBack && t.getDatacallBack(-1);
                });
            } else
              console.log("登录失败！" + res_login.errMsg),
                t.getDatacallBack && t.getDatacallBack(-1);
          },
        });
      },
      globalData: {
        openId: "",
        todayRunDistance: -1,
        lastRunstartTime: 0,
        nickname: "",
        avator: "",
        latitude: "39.872801",
        longitude: "116.413426",
        enableSatelliteStyle: !1,
        hasPrivacyAuthrize: !1,
        adUnits: {
          banner: "adunit-c16a80ddb9e8f303",
          jl_video: "adunit-0a71da8c64af9e6f",
          chaping: "adunit-f4d2cc5d940a2eb1",
          video: "adunit-e2d8ad5303650fc1",
          gezi: "adunit-0818306d15a8cdbd",
        },
      },
    });
  },
  { isPage: false, isComponent: false, currentFile: "app.js" }
);
require("app.js");
__wxCodeSpace__.batchAddCompiledTemplate(function (G, R, D, Q, gdc, X, Y, Z) {
  return {
    "components/privacyPopup/privacyPopup": (() => {
      var P = "components/privacyPopup/privacyPopup";
      var H = {};
      var I = {};
      H[""] = I[""] = (R, C, D, U) => {
        var L = R.c;
        var M = R.m;
        var O = R.r;
        var A = {};
        var K = U === true;
        return {
          C: (C, T, E, B) => {
            var a = D.innerShow ? 1 : 0;
            B(a, (C, T, E) => {
              if (a === 1) {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-privacy-bg");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-privacy-diag");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-privacy-title");
                          },
                          (C, T) => {
                            C || K || U.title ? T(Y(D.title)) : T();
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-privacy-content");
                          },
                          (C, T, E) => {
                            C || K || !!U.desc1 || undefined
                              ? T(Y(" " + Y(D.desc1) + "："))
                              : T();
                            E(
                              "text",
                              {},
                              (N, C) => {
                                if (C) R.y(N, "color:blue");
                                if (C) R.r(N, "bindtap", "openPrivacyContract");
                              },
                              (C, T) => {
                                C || K || U.urlTitle ? T(Y(D.urlTitle)) : T();
                              }
                            );
                            C || K || !!U.desc2 || undefined
                              ? T(Y(Y(D.desc2) + " "))
                              : T();
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-privacy-btn");
                          },
                          (C, T, E) => {
                            E(
                              "button",
                              {},
                              (N, C) => {
                                if (C) R.i(N, "disagree-btn");
                                if (C)
                                  R.y(N, "color: #000; font-weight: normal;");
                                if (C) O(N, "type", "default");
                                if (C) R.r(N, "bindtap", "handleDisagree");
                                if (C) L(N, "btn-privacy");
                              },
                              (C, T, E) => {
                                C ? T("不同意 ") : T();
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(N, "font-size: 20rpx;color: #10aeff");
                                  },
                                  (C, T) => {
                                    C ? T("(仅进入浏览模式)") : T();
                                  }
                                );
                              }
                            );
                            E(
                              "button",
                              {},
                              (N, C) => {
                                if (C) R.i(N, "agree-btn");
                                if (C)
                                  R.y(
                                    N,
                                    "background-color: #10aeff; color: #fff;"
                                  );
                                if (C) O(N, "type", "default");
                                if (C) L(N, "btn-privacy");
                                if (C)
                                  O(
                                    N,
                                    "open-type",
                                    "agreePrivacyAuthorization"
                                  );
                                if (C)
                                  R.r(
                                    N,
                                    "bindagreeprivacyauthorization",
                                    "handleAgree"
                                  );
                              },
                              (C, T) => {
                                C ? T("同意并继续") : T();
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
              }
            });
          },
          B: A,
        };
      };
      return function (P) {
        return H[P];
      };
    })(),
  };
});
__wxRoute = "components/privacyPopup/privacyPopup";
__wxRouteBegin = true;
__wxAppCurrentFile__ = "components/privacyPopup/privacyPopup.js";
define(
  "components/privacyPopup/privacyPopup.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    Component({
      data: {
        title: "用户隐私保护提示",
        desc1: "感谢您使用跑步记录助手，您使用本小程序前应当阅读并同意",
        urlTitle: "《用户隐私保护指引》",
        desc2:
          "。当您点击同意并开始使用跑步记录助手时，即表示您已理解并同意该条款内容。如您拒绝，将只能进入浏览模式",
        innerShow: !1,
        height: 0,
      },
      lifetimes: {
        attached: function () {
          var t = this;
          wx.getPrivacySetting
            ? wx.getPrivacySetting({
                success: function (e) {
                  console.log(
                    "是否需要授权：",
                    e.needAuthorization,
                    "隐私协议的名称为：",
                    e.privacyContractName
                  ),
                    e.needAuthorization
                      ? t.triggerEvent("disagree")
                      : t.triggerEvent("agree");
                },
                fail: function () {},
                complete: function () {},
              })
            : this.triggerEvent("agree");
        },
      },
      methods: {
        handleDisagree: function (t) {
          this.triggerEvent("disagree"), this.disPopUp();
        },
        handleAgree: function (t) {
          this.triggerEvent("agree"), this.disPopUp();
        },
        popUp: function () {
          this.setData({ innerShow: !0 });
        },
        disPopUp: function () {
          this.setData({ innerShow: !1 });
        },
        openPrivacyContract: function () {
          wx.openPrivacyContract({
            success: function (t) {
              console.log("openPrivacyContract success");
            },
            fail: function (t) {
              console.error("openPrivacyContract fail", t);
            },
          });
        },
      },
    });
  },
  {
    isPage: false,
    isComponent: true,
    currentFile: "components/privacyPopup/privacyPopup.js",
  }
);
require("components/privacyPopup/privacyPopup.js");
__wxCodeSpace__.batchAddCompiledTemplate(function (G, R, D, Q, gdc, X, Y, Z) {
  return {
    "pages/index/index": (() => {
      var P = "pages/index/index";
      var H = {};
      var I = {};
      H[""] = I[""] = (R, C, D, U) => {
        var L = R.c;
        var M = R.m;
        var O = R.r;
        var A = {
          markers: new Array(1),
          showPrivacyDiag: new Array(1),
          isSatelliteStyle: new Array(1),
          polyline: new Array(1),
          latitude: new Array(1),
          longitude: new Array(1),
          todayRunDistance: new Array(1),
        };
        var K = U === true;
        return {
          C: (C, T, E) => {
            E(
              "view",
              {},
              (N, C) => {
                if (C) R.y(N, "position: fixed;  width: 100%; height: 100%;");
              },
              (C, T, E) => {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "content");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "map-wrap");
                      },
                      (C, T, E) => {
                        E(
                          "map",
                          {},
                          (N, C) => {
                            if (C) R.i(N, "map");
                            if (C || K || U.isSatelliteStyle)
                              O(N, "enable-satellite", D.isSatelliteStyle);
                            A["isSatelliteStyle"][0] = (D, E, T) => {
                              O(N, "enable-satellite", D.isSatelliteStyle);
                              E(N);
                            };
                            if (C || K || U.longitude)
                              O(N, "longitude", D.longitude);
                            A["longitude"][0] = (D, E, T) => {
                              O(N, "longitude", D.longitude);
                              E(N);
                            };
                            if (C) O(N, "show-location", "false");
                            if (C || K || U.latitude)
                              O(N, "latitude", D.latitude);
                            A["latitude"][0] = (D, E, T) => {
                              O(N, "latitude", D.latitude);
                              E(N);
                            };
                            if (C) O(N, "scale", "16");
                            if (C || K || U.markers) O(N, "markers", D.markers);
                            A["markers"][0] = (D, E, T) => {
                              O(N, "markers", D.markers);
                              E(N);
                            };
                            if (C || K || U.polyline)
                              O(N, "polyline", D.polyline);
                            A["polyline"][0] = (D, E, T) => {
                              O(N, "polyline", D.polyline);
                              E(N);
                            };
                          },
                          (C) => {}
                        );
                      }
                    );
                  }
                );
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-header");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-today-run");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C)
                              R.y(N, "margin-bottom: 30rpx; font-size: 50rpx;");
                          },
                          (C, T, E) => {
                            E(
                              "text",
                              {},
                              (N, C) => {},
                              (C, T) => {
                                C ? T("今日里程") : T();
                              }
                            );
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-today-distance");
                          },
                          (C, T, E) => {
                            E(
                              "text",
                              {},
                              (N, C) => {
                                if (C)
                                  R.y(N, "font-size: 80rpx;font-weight: bold;");
                              },
                              (C, T) => {
                                C || K || U.todayRunDistance
                                  ? T(Y(D.todayRunDistance), (N) => {
                                      A["todayRunDistance"][0] = (D, E, T) => {
                                        T(N, Y(D.todayRunDistance));
                                      };
                                    })
                                  : T();
                              }
                            );
                            E(
                              "text",
                              {},
                              (N, C) => {
                                if (C)
                                  R.y(
                                    N,
                                    "margin-left: 20rpx; font-size: 30rpx;"
                                  );
                              },
                              (C, T) => {
                                C ? T("公里") : T();
                              }
                            );
                          }
                        );
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-header-right");
                        if (C) R.y(N, "font-size: 30rpx;");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-record");
                            if (C) R.r(N, "bindtap", "onRecord");
                          },
                          (C, T, E) => {
                            E(
                              "image",
                              {},
                              (N, C) => {
                                if (C) O(N, "src", "../../images/history.png");
                              },
                              (C) => {}
                            );
                            E(
                              "text",
                              {},
                              (N, C) => {},
                              (C, T) => {
                                C ? T("历史记录") : T();
                              }
                            );
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-rank");
                            if (C) R.r(N, "bindtap", "onRank");
                          },
                          (C, T, E) => {
                            E(
                              "image",
                              {},
                              (N, C) => {
                                if (C) O(N, "src", "../../images/rank.png");
                              },
                              (C) => {}
                            );
                            E(
                              "text",
                              {},
                              (N, C) => {},
                              (C, T) => {
                                C ? T("我的排名") : T();
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-run-control");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-circle-out");
                      },
                      (C) => {}
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) R.r(N, "bindtap", "startRun");
                        if (C) L(N, "view-start");
                      },
                      (C, T, E) => {
                        E(
                          "image",
                          {},
                          (N, C) => {
                            if (C) O(N, "src", "../../images/start-run.png");
                            if (C) O(N, "mode", "aspectFit");
                          },
                          (C) => {}
                        );
                        E(
                          "text",
                          {},
                          (N, C) => {},
                          (C, T) => {
                            C ? T("开始") : T();
                          }
                        );
                      }
                    );
                  }
                );
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-map-btn");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-mapStyle");
                        if (C) R.r(N, "bindtap", "onChangeMapStyle");
                      },
                      (C, T, E) => {
                        E(
                          "image",
                          {},
                          (N, C) => {
                            if (C) O(N, "src", "../../images/style.png");
                          },
                          (C) => {}
                        );
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-mapPosition");
                        if (C) R.r(N, "bindtap", "onLocate");
                      },
                      (C, T, E) => {
                        E(
                          "image",
                          {},
                          (N, C) => {
                            if (C) O(N, "src", "../../images/locate.png");
                          },
                          (C) => {}
                        );
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-mapShare");
                      },
                      (C, T, E) => {
                        E(
                          "button",
                          {},
                          (N, C) => {
                            if (C) O(N, "open-type", "share");
                          },
                          (C, T, E) => {
                            E(
                              "image",
                              {},
                              (N, C) => {
                                if (C) O(N, "src", "../../images/share.png");
                              },
                              (C) => {}
                            );
                          }
                        );
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-feedback");
                      },
                      (C, T, E) => {
                        E(
                          "image",
                          {},
                          (N, C) => {
                            if (C) O(N, "src", "../../images/feedback.png");
                          },
                          (C) => {}
                        );
                        E(
                          "button",
                          {},
                          (N, C) => {
                            if (C) O(N, "open-type", "contact");
                            if (C) R.y(N, "width: 100%;");
                            if (C) L(N, "view-contact-btn");
                          },
                          (C) => {}
                        );
                      }
                    );
                  }
                );
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-map-btn-left");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-ad");
                      },
                      (C, T, E) => {
                        E(
                          "ad-custom",
                          {},
                          (N, C) => {
                            if (C) O(N, "unit-id", "adunit-91c6eb46c253f614");
                          },
                          (C) => {}
                        );
                      }
                    );
                  }
                );
              }
            );
            E(
              "privacy-popup",
              {},
              (N, C) => {
                if (C) R.i(N, "myPrivacyPop");
                if (C || K || U.showPrivacyDiag)
                  O(N, "innerShow", D.showPrivacyDiag);
                A["showPrivacyDiag"][0] = (D, E, T) => {
                  O(N, "innerShow", D.showPrivacyDiag);
                  E(N);
                };
                if (C) R.v(N, "agree", "agree", !1, !1, !1, !1);
                if (C) R.v(N, "disagree", "disagree", !1, !1, !1, !1);
              },
              (C) => {}
            );
          },
          B: A,
        };
      };
      return function (P) {
        return H[P];
      };
    })(),
  };
});
__wxRoute = "pages/index/index";
__wxRouteBegin = true;
__wxAppCurrentFile__ = "pages/index/index.js";
define(
  "pages/index/index.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var t,
      e = require("../../@babel/runtime/helpers/regeneratorRuntime"),
      a = require("../../@babel/runtime/helpers/asyncToGenerator"),
      o = getApp(),
      n = require("../../D38F48309100CF2FB5E920376AFB2D82.js"),
      i = !1;
    Page({
      data: {
        latitude: "39.872801",
        longitude: "116.413426",
        scale: 16,
        markers: [],
        polyline: [{ points: [], color: "#FB8337", width: 6, arrowLine: !0 }],
        todayRunDistance: 0,
        mapStyleKeys: [
          "RQIBZ-BJ56P-4L3DL-L2C6C-MLMHT-BNB2L",
          "6YMBZ-72KKI-PN2GY-5634L-XSBAK-OBFYA",
          "IW4BZ-TPJC6-P44SB-ED4PH-HE4SO-SZBOF",
        ],
        mapStyleKey: 0,
        mapStyleIndex: 1,
        mapStyleChoose: 1,
      },
      onLoad: function () {
        var t = this;
        (this.data.mapContext = wx.createMapContext("map")),
          this.setData({ isSatelliteStyle: o.globalData.enableSatelliteStyle }),
          wx.showLoading({ title: "初始化中", mask: !0 }),
          -1 != o.globalData.todayRunDistance
            ? (this.setData({
                todayRunDistance: o.globalData.todayRunDistance,
              }),
              (i = !0),
              this.checkHistoryData(),
              wx.hideLoading(),
              this.checkHasPrivacyAuthorize())
            : (o.getDatacallBack = function (e) {
                -1 != e &&
                  (t.setData({ todayRunDistance: e }),
                  (i = !0),
                  t.checkHistoryData()),
                  wx.hideLoading(),
                  t.checkHasPrivacyAuthorize();
              });
      },
      checkHistoryData:
        ((t = a(
          e().mark(function t() {
            var a;
            return e().wrap(
              function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (
                        (a = this),
                        (t.next = 3),
                        wx.getStorage({
                          key: o.globalData.openId,
                          success: function (t) {
                            console.log(t);
                            var e = Date.parse(new Date());
                            if (
                              o.globalData.lastRunstartTime !=
                              t.data.record.runStartTime
                            )
                              if (
                                86400 <=
                                (e - t.data.record.runStartTime) / 1e3
                              ) {
                                var n = t.data.record,
                                  i = n.runPoints.length;
                                if (i > 1e3) {
                                  for (
                                    var c = Math.ceil(i / 1e3), s = [], l = 0;
                                    l < i;
                                    l += c
                                  )
                                    s.push(n.runPoints[l]);
                                  (n.runPoints = s), console.log(n);
                                }
                                a.uploadHistoryData(n);
                              } else
                                wx.showModal({
                                  title: "提示",
                                  content:
                                    "检测到您上次的跑步还没有结束，是否继续？",
                                  showCancel: !0,
                                  success: function (e) {
                                    e.confirm
                                      ? (wx.reLaunch({
                                          url:
                                            "../../pages/run/run?getInPage=index&exitType=" +
                                            t.data.exitType +
                                            "&records=" +
                                            JSON.stringify(t.data.record),
                                        }),
                                        wx.removeStorage({
                                          key: o.globalData.openId,
                                          success: function (t) {
                                            console.log(t);
                                          },
                                        }))
                                      : a.uploadHistoryData(t.data.record);
                                  },
                                });
                            else
                              wx.removeStorage({
                                key: o.globalData.openId,
                                success: function (t) {
                                  console.log(t);
                                },
                              });
                          },
                        })
                      );
                    case 3:
                    case "end":
                      return t.stop();
                  }
              },
              t,
              this
            );
          })
        )),
        function () {
          return t.apply(this, arguments);
        }),
      uploadHistoryData: function (t) {
        var e = {
            purpose: "updateRunRecord",
            key: { openId: o.globalData.openId, record: t },
          },
          a = this;
        n.request("", "POST", e)
          .then(function (e) {
            console.log(e),
              e &&
                e.data &&
                (a.setData({ todayRunDistance: e.data.todayRunDistance }),
                (o.globalData.todayRunDistance = a.data.todayRunDistance),
                (o.globalData.lastRunstartTime = t.runStartTime),
                wx.removeStorage({
                  key: o.globalData.openId,
                  success: function (t) {
                    console.log(t);
                  },
                }));
          })
          .catch(function (e) {
            console.log(e),
              wx.showToast({
                title: "网络异常",
                icon: "none",
                duration: 1e3,
                mask: !1,
              }),
              a.uploadHistoryData(t);
          });
      },
      checkAuthorize: function () {
        var t = this;
        wx.getSetting({
          success: function (e) {
            e.authSetting["scope.userLocationBackground"]
              ? t.getCurrentLocation()
              : wx.showModal({
                  title: "提示",
                  content:
                    '为确保手机息屏后也能获取到跑步轨迹，请先设置位置为"使用小程序时和离开后允许" 再进行跑步',
                  showCancel: !1,
                  success: function (t) {
                    t.confirm && wx.openSetting();
                  },
                });
          },
          fail: function (t) {
            console.log(t);
          },
        });
      },
      getCurrentLocation: function () {
        var t = this;
        wx.authorize({
          scope: "scope.userLocation",
          success: function (e) {
            console.log(e),
              wx.getLocation({
                type: "gcj02",
                isHighAccuracy: !0,
                success: function (e) {
                  console.log(e),
                    t.setData({ latitude: e.latitude, longitude: e.longitude }),
                    (o.globalData.latitude = e.latitude),
                    (o.globalData.longitude = e.longitude);
                },
                fail: function (t) {
                  console.log(t);
                },
              });
          },
          fail: function (t) {
            console.log(t);
          },
        });
      },
      startRun: function () {
        i
          ? this.checkHasPrivacyAuthorize() &&
            (this.checkGPS()
              ? wx.reLaunch({ url: "../../pages/run/run" })
              : wx.showModal({
                  title: "提示",
                  content: "为了保证定位精确，请先开启手机GPS定位哦",
                  showCancel: !1,
                }))
          : wx.showModal({
              title: "提示",
              content: "检测到网络异常，请点击右上角，选择重新进入小程序哦~",
              showCancel: !1,
            });
      },
      checkGPS: function () {
        return wx.getSystemInfoSync().locationEnabled;
      },
      onRecord: function () {
        wx.navigateTo({ url: "../../pages/record/record" });
      },
      onRank: function () {
        wx.navigateTo({ url: "../../pages/rank/rank" });
      },
      onLocate: function () {
        this.checkHasPrivacyAuthorize() &&
          (wx.showLoading({ title: "定位中", mask: !0 }),
          setTimeout(function () {
            wx.hideLoading();
          }, 1e3),
          this.getCurrentLocation());
      },
      onChangeMapStyle: function () {
        (this.data.isSatelliteStyle = !this.data.isSatelliteStyle),
          this.setData({ isSatelliteStyle: this.data.isSatelliteStyle }),
          (o.globalData.enableSatelliteStyle = this.data.isSatelliteStyle);
      },
      onReady: function () {},
      onShow: function () {
        o.globalData.hasPrivacyAuthrize && this.checkAuthorize();
      },
      onHide: function () {},
      onUnload: function () {},
      onPullDownRefresh: function () {},
      onReachBottom: function () {},
      onShareAppMessage: function () {
        return {
          title: "一起来跑步打卡吧~",
          path: "pages/index/index",
          imageUrl: "",
        };
      },
      checkHasPrivacyAuthorize: function () {
        return (
          !!o.globalData.hasPrivacyAuthrize ||
          (this.selectComponent("#myPrivacyPop").popUp(), !1)
        );
      },
      agree: function (t) {
        console.log("用户同意隐私授权, 接下来可以调用隐私协议中声明的隐私接口"),
          (o.globalData.hasPrivacyAuthrize = !0),
          this.checkAuthorize();
      },
      disagree: function (t) {
        (o.globalData.hasPrivacyAuthrize = !1),
          console.log("用户拒绝隐私授权, 未同意过的隐私协议中的接口将不能调用");
      },
    });
  },
  { isPage: true, isComponent: true, currentFile: "pages/index/index.js" }
);
require("pages/index/index.js");
__wxCodeSpace__.batchAddCompiledTemplate(function (G, R, D, Q, gdc, X, Y, Z) {
  return {
    "pages/rank/rank": (() => {
      var P = "pages/rank/rank";
      var H = {};
      var I = {};
      H[""] = I[""] = (R, C, D, U) => {
        var L = R.c;
        var M = R.m;
        var O = R.r;
        var A = { currentIndex: new Array(4), scrollHeight: new Array(3) };
        var K = U === true;
        return {
          C: (C, T, E) => {
            E(
              "view",
              {},
              (N, C) => {
                if (C) L(N, "view-navBox");
              },
              (C, T, E) => {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "title-box");
                    if (C) R.r(N, "bindtap", "onClickNavBox");
                    if (C) R.d(N, "idx", "0");
                  },
                  (C, T, E) => {
                    E(
                      "text",
                      {},
                      (N, C) => {},
                      (C, T) => {
                        C ? T("日榜") : T();
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C || K || !!U.currentIndex || undefined)
                          L(
                            N,
                            0 == D.currentIndex ? "line-box" : "no-line-box"
                          );
                        A["currentIndex"][0] = (D, E, T) => {
                          L(
                            N,
                            0 == D.currentIndex ? "line-box" : "no-line-box"
                          );
                        };
                      },
                      (C) => {}
                    );
                  }
                );
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "title-box");
                    if (C) R.r(N, "bindtap", "onClickNavBox");
                    if (C) R.d(N, "idx", "1");
                  },
                  (C, T, E) => {
                    E(
                      "text",
                      {},
                      (N, C) => {},
                      (C, T) => {
                        C ? T("周榜") : T();
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C || K || !!U.currentIndex || undefined)
                          L(
                            N,
                            1 == D.currentIndex ? "line-box" : "no-line-box"
                          );
                        A["currentIndex"][1] = (D, E, T) => {
                          L(
                            N,
                            1 == D.currentIndex ? "line-box" : "no-line-box"
                          );
                        };
                      },
                      (C) => {}
                    );
                  }
                );
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "title-box");
                    if (C) R.r(N, "bindtap", "onClickNavBox");
                    if (C) R.d(N, "idx", "2");
                  },
                  (C, T, E) => {
                    E(
                      "text",
                      {},
                      (N, C) => {},
                      (C, T) => {
                        C ? T("月榜") : T();
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C || K || !!U.currentIndex || undefined)
                          L(
                            N,
                            2 == D.currentIndex ? "line-box" : "no-line-box"
                          );
                        A["currentIndex"][2] = (D, E, T) => {
                          L(
                            N,
                            2 == D.currentIndex ? "line-box" : "no-line-box"
                          );
                        };
                      },
                      (C) => {}
                    );
                  }
                );
              }
            );
            E(
              "swiper",
              {},
              (N, C) => {
                if (C) L(N, "view-swiper");
                if (C) R.y(N, "height: 100%");
                if (C || K || U.currentIndex) O(N, "current", D.currentIndex);
                A["currentIndex"][3] = (D, E, T) => {
                  O(N, "current", D.currentIndex);
                  E(N);
                };
                if (C) R.r(N, "bindchange", "onSwiperChange");
              },
              (C, T, E) => {
                E(
                  "swiper-item",
                  {},
                  (N, C) => {
                    if (C) L(N, "swiper-item");
                  },
                  (C, T, E) => {
                    E(
                      "scroll-view",
                      {},
                      (N, C) => {
                        if (C || K || undefined) O(N, "scroll-y", true);
                        if (C || K || !!U.scrollHeight || undefined)
                          R.y(
                            N,
                            "width: 100%; height:" + Y(D.scrollHeight) + "rpx;"
                          );
                        A["scrollHeight"][0] = (D, E, T) => {
                          R.y(
                            N,
                            "width: 100%; height:" + Y(D.scrollHeight) + "rpx;"
                          );
                        };
                      },
                      (C, T, E, B) => {
                        var a = X(D.medalInfo).length ? 1 : 0;
                        B(a, (C, T, E) => {
                          if (a === 1) {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "rank-header");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "2");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 1;
                                        var c = 1;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-2.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 1;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 1;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "todayDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .todayDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "1");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 0;
                                        var c = 0;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-1.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 0;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 0;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "todayDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .todayDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "3");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 2;
                                        var c = 2;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-3.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 2;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 2;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "todayDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .todayDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                          }
                        });
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "rank-user");
                          },
                          (C, T, E, B) => {
                            var b = D.userRank > 0 ? 1 : 0;
                            B(b, (C, T, E) => {
                              if (b === 1) {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-user-text");
                                  },
                                  (C, T) => {
                                    C || K || !!U.userRank || undefined
                                      ? T(
                                          Y(
                                            "#你今天排名第" +
                                              Y(D.userRank) +
                                              "名哦#"
                                          )
                                        )
                                      : T();
                                  }
                                );
                              } else {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-user-text");
                                  },
                                  (C, T) => {
                                    C ? T("#你今天还没有排名哦#") : T();
                                  }
                                );
                              }
                            });
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "rank-list");
                          },
                          (C, T, E, B, F) => {
                            F(
                              D.runDistanceList,
                              "user_openId",
                              U ? U.runDistanceList : undefined,
                              ["runDistanceList"],
                              (C, b, c, d, e, f, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-item");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-item-content");
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(U.medalInfo, "length") ||
                                            e ||
                                            e
                                          ) ||
                                          undefined
                                        )
                                          R.d(
                                            N,
                                            "index",
                                            X(D.medalInfo).length
                                              ? c + 4
                                              : c + 1
                                          );
                                        if (C)
                                          R.r(N, "bindtap", "onGetUserInfo");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "rank-item-left");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C) R.y(N, "width: 130rpx;");
                                              },
                                              (C, T) => {
                                                C ||
                                                K ||
                                                !!(
                                                  Z(U.medalInfo, "length") ||
                                                  e ||
                                                  e
                                                ) ||
                                                undefined
                                                  ? T(
                                                      Y(
                                                        X(D.medalInfo).length
                                                          ? c + 4
                                                          : c + 1
                                                      )
                                                    )
                                                  : T();
                                              }
                                            );
                                            E(
                                              "image",
                                              {},
                                              (N, C) => {
                                                if (
                                                  C ||
                                                  K ||
                                                  !!(
                                                    Z(
                                                      Z(d, "user_avator"),
                                                      "length"
                                                    ) || Z(d, "user_avator")
                                                  ) ||
                                                  undefined
                                                )
                                                  O(
                                                    N,
                                                    "src",
                                                    X(X(b).user_avator).length
                                                      ? X(b).user_avator
                                                      : "../../images/avator.png"
                                                  );
                                              },
                                              (C) => {}
                                            );
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C) L(N, "nickname");
                                              },
                                              (C, T) => {
                                                C || K || Z(d, "user_nickname")
                                                  ? T(Y(X(b).user_nickname))
                                                  : T();
                                              }
                                            );
                                          }
                                        );
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "rank-item-right");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {},
                                              (C, T) => {
                                                C ||
                                                K ||
                                                !!Z(d, "todayDistance") ||
                                                undefined
                                                  ? T(
                                                      Y(
                                                        Y(X(b).todayDistance) +
                                                          " km"
                                                      )
                                                    )
                                                  : T();
                                              }
                                            );
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "item-divide-line");
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
                E(
                  "swiper-item",
                  {},
                  (N, C) => {
                    if (C) L(N, "swiper-item");
                  },
                  (C, T, E) => {
                    E(
                      "scroll-view",
                      {},
                      (N, C) => {
                        if (C || K || undefined) O(N, "scroll-y", true);
                        if (C || K || !!U.scrollHeight || undefined)
                          R.y(
                            N,
                            "width: 100%; height:" + Y(D.scrollHeight) + "rpx;"
                          );
                        A["scrollHeight"][1] = (D, E, T) => {
                          R.y(
                            N,
                            "width: 100%; height:" + Y(D.scrollHeight) + "rpx;"
                          );
                        };
                      },
                      (C, T, E, B) => {
                        var a = X(D.medalInfo).length ? 1 : 0;
                        B(a, (C, T, E) => {
                          if (a === 1) {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "rank-header");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "2");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 1;
                                        var c = 1;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-2.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 1;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 1;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "thisWeekRunDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .thisWeekRunDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "1");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 0;
                                        var c = 0;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-1.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 0;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 0;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "thisWeekRunDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .thisWeekRunDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "3");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 2;
                                        var c = 2;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-3.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 2;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 2;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "thisWeekRunDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .thisWeekRunDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                          }
                        });
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "rank-user");
                          },
                          (C, T, E, B) => {
                            var b = D.userRank > 0 ? 1 : 0;
                            B(b, (C, T, E) => {
                              if (b === 1) {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-user-text");
                                  },
                                  (C, T) => {
                                    C || K || !!U.userRank || undefined
                                      ? T(
                                          Y(
                                            "#你本周排名第" +
                                              Y(D.userRank) +
                                              "名哦#"
                                          )
                                        )
                                      : T();
                                  }
                                );
                              } else {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-user-text");
                                  },
                                  (C, T) => {
                                    C ? T("#你本周还没有排名哦#") : T();
                                  }
                                );
                              }
                            });
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "rank-list");
                          },
                          (C, T, E, B, F) => {
                            F(
                              D.runDistanceList,
                              "user_openId",
                              U ? U.runDistanceList : undefined,
                              ["runDistanceList"],
                              (C, b, c, d, e, f, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-item");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-item-content");
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(U.medalInfo, "length") ||
                                            e ||
                                            e
                                          ) ||
                                          undefined
                                        )
                                          R.d(
                                            N,
                                            "index",
                                            X(D.medalInfo).length
                                              ? c + 4
                                              : c + 1
                                          );
                                        if (C)
                                          R.r(N, "bindtap", "onGetUserInfo");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "rank-item-left");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C) R.y(N, "width: 130rpx;");
                                              },
                                              (C, T) => {
                                                C ||
                                                K ||
                                                !!(
                                                  Z(U.medalInfo, "length") ||
                                                  e ||
                                                  e
                                                ) ||
                                                undefined
                                                  ? T(
                                                      Y(
                                                        X(D.medalInfo).length
                                                          ? c + 4
                                                          : c + 1
                                                      )
                                                    )
                                                  : T();
                                              }
                                            );
                                            E(
                                              "image",
                                              {},
                                              (N, C) => {
                                                if (
                                                  C ||
                                                  K ||
                                                  !!(
                                                    Z(
                                                      Z(d, "user_avator"),
                                                      "length"
                                                    ) || Z(d, "user_avator")
                                                  ) ||
                                                  undefined
                                                )
                                                  O(
                                                    N,
                                                    "src",
                                                    X(X(b).user_avator).length
                                                      ? X(b).user_avator
                                                      : "../../images/avator.png"
                                                  );
                                              },
                                              (C) => {}
                                            );
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C) L(N, "nickname");
                                              },
                                              (C, T) => {
                                                C || K || Z(d, "user_nickname")
                                                  ? T(Y(X(b).user_nickname))
                                                  : T();
                                              }
                                            );
                                          }
                                        );
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "rank-item-right");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {},
                                              (C, T) => {
                                                C ||
                                                K ||
                                                !!Z(d, "thisWeekRunDistance") ||
                                                undefined
                                                  ? T(
                                                      Y(
                                                        Y(
                                                          X(b)
                                                            .thisWeekRunDistance
                                                        ) + " km"
                                                      )
                                                    )
                                                  : T();
                                              }
                                            );
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "item-divide-line");
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
                E(
                  "swiper-item",
                  {},
                  (N, C) => {
                    if (C) L(N, "swiper-item");
                  },
                  (C, T, E) => {
                    E(
                      "scroll-view",
                      {},
                      (N, C) => {
                        if (C || K || undefined) O(N, "scroll-y", true);
                        if (C || K || !!U.scrollHeight || undefined)
                          R.y(
                            N,
                            "width: 100%; height:" + Y(D.scrollHeight) + "rpx;"
                          );
                        A["scrollHeight"][2] = (D, E, T) => {
                          R.y(
                            N,
                            "width: 100%; height:" + Y(D.scrollHeight) + "rpx;"
                          );
                        };
                      },
                      (C, T, E, B) => {
                        var a = X(D.medalInfo).length ? 1 : 0;
                        B(a, (C, T, E) => {
                          if (a === 1) {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "rank-header");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "2");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 1;
                                        var c = 1;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-2.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 1;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 1;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "thisMonthRunDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .thisMonthRunDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "1");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 0;
                                        var c = 0;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-1.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 0;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 0;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "thisMonthRunDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .thisMonthRunDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-medal");
                                    if (C) R.d(N, "index", "3");
                                    if (C) R.r(N, "bindtap", "onGetUserInfo");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-avator");
                                        var b = 2;
                                        var c = 2;
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(
                                              Z(
                                                Z(U.medalInfo, b),
                                                "user_avator"
                                              ),
                                              "length"
                                            ) ||
                                            Z(Z(U.medalInfo, c), "user_avator")
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(X(X(D.medalInfo)[b]).user_avator)
                                              .length
                                              ? X(X(D.medalInfo)[c]).user_avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-medal-level");
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/medal-3.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-nickname");
                                      },
                                      (C, T) => {
                                        var b = 2;
                                        C ||
                                        K ||
                                        Z(Z(U.medalInfo, b), "user_nickname")
                                          ? T(
                                              Y(
                                                X(X(D.medalInfo)[b])
                                                  .user_nickname
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "text-distance");
                                      },
                                      (C, T) => {
                                        var b = 2;
                                        C ||
                                        K ||
                                        !!Z(
                                          Z(U.medalInfo, b),
                                          "thisMonthRunDistance"
                                        ) ||
                                        undefined
                                          ? T(
                                              Y(
                                                Y(
                                                  X(X(D.medalInfo)[b])
                                                    .thisMonthRunDistance
                                                ) + " km"
                                              )
                                            )
                                          : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                          }
                        });
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "rank-user");
                          },
                          (C, T, E, B) => {
                            var b = D.userRank > 0 ? 1 : 0;
                            B(b, (C, T, E) => {
                              if (b === 1) {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-user-text");
                                  },
                                  (C, T) => {
                                    C || K || !!U.userRank || undefined
                                      ? T(
                                          Y(
                                            "#你本月排名第" +
                                              Y(D.userRank) +
                                              "名哦#"
                                          )
                                        )
                                      : T();
                                  }
                                );
                              } else {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-user-text");
                                  },
                                  (C, T) => {
                                    C ? T("#你本月还没有排名哦#") : T();
                                  }
                                );
                              }
                            });
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "rank-list");
                          },
                          (C, T, E, B, F) => {
                            F(
                              D.runDistanceList,
                              "user_openId",
                              U ? U.runDistanceList : undefined,
                              ["runDistanceList"],
                              (C, b, c, d, e, f, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "rank-item");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "rank-item-content");
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(U.medalInfo, "length") ||
                                            e ||
                                            e
                                          ) ||
                                          undefined
                                        )
                                          R.d(
                                            N,
                                            "index",
                                            X(D.medalInfo).length
                                              ? c + 4
                                              : c + 1
                                          );
                                        if (C)
                                          R.r(N, "bindtap", "onGetUserInfo");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "rank-item-left");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C) R.y(N, "width: 130rpx;");
                                              },
                                              (C, T) => {
                                                C ||
                                                K ||
                                                !!(
                                                  Z(U.medalInfo, "length") ||
                                                  e ||
                                                  e
                                                ) ||
                                                undefined
                                                  ? T(
                                                      Y(
                                                        X(D.medalInfo).length
                                                          ? c + 4
                                                          : c + 1
                                                      )
                                                    )
                                                  : T();
                                              }
                                            );
                                            E(
                                              "image",
                                              {},
                                              (N, C) => {
                                                if (
                                                  C ||
                                                  K ||
                                                  !!(
                                                    Z(
                                                      Z(d, "user_avator"),
                                                      "length"
                                                    ) || Z(d, "user_avator")
                                                  ) ||
                                                  undefined
                                                )
                                                  O(
                                                    N,
                                                    "src",
                                                    X(X(b).user_avator).length
                                                      ? X(b).user_avator
                                                      : "../../images/avator.png"
                                                  );
                                              },
                                              (C) => {}
                                            );
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C) L(N, "nickname");
                                              },
                                              (C, T) => {
                                                C || K || Z(d, "user_nickname")
                                                  ? T(Y(X(b).user_nickname))
                                                  : T();
                                              }
                                            );
                                          }
                                        );
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "rank-item-right");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {},
                                              (C, T) => {
                                                C ||
                                                K ||
                                                !!Z(
                                                  d,
                                                  "thisMonthRunDistance"
                                                ) ||
                                                undefined
                                                  ? T(
                                                      Y(
                                                        Y(
                                                          X(b)
                                                            .thisMonthRunDistance
                                                        ) + " km"
                                                      )
                                                    )
                                                  : T();
                                              }
                                            );
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "item-divide-line");
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
              }
            );
          },
          B: A,
        };
      };
      return function (P) {
        return H[P];
      };
    })(),
  };
});
__wxRoute = "pages/rank/rank";
__wxRouteBegin = true;
__wxAppCurrentFile__ = "pages/rank/rank.js";
define(
  "pages/rank/rank.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var n = require("../../D38F48309100CF2FB5E920376AFB2D82.js"),
      a = getApp();
    Page({
      data: {
        currentIndex: 0,
        swiperHeight: 150,
        scrollHeight: 750,
        medalInfo: [],
        runDataInfo: [],
      },
      onLoad: function (n) {
        this.getRunRank(0);
      },
      getRunRank: function (t) {
        var e = this;
        wx.showLoading({ title: "加载中" });
        var o = {
          purpose: "getRunRank",
          key: { openId: a.globalData.openId, rankType: t },
        };
        n.request("", "GET", o)
          .then(function (n) {
            console.log(n),
              (e.data.runDataInfo = n.data.rankList),
              e.data.runDataInfo.length > 3
                ? ((e.data.medalInfo = e.data.runDataInfo.slice(0, 3)),
                  (e.data.runDistanceList = e.data.runDataInfo.slice(3)))
                : ((e.data.medalInfo = []),
                  (e.data.runDistanceList = e.data.runDataInfo));
            var a = wx.getSystemInfoSync().windowHeight,
              t = 750 / wx.getSystemInfoSync().windowWidth,
              o = 220 / t;
            e.setData(
              {
                scrollHeight: (a - o) * t,
                userRank: n.data.userRank,
                medalInfo: e.data.medalInfo,
                runDistanceList: e.data.runDistanceList,
              },
              function () {
                wx.hideLoading();
              }
            );
          })
          .catch(function (n) {
            console.log(n), wx.hideLoading();
          });
      },
      onClickNavBox: function (n) {
        this.setData({ currentIndex: n.currentTarget.dataset.idx });
      },
      onSwiperChange: function (n) {
        this.setData({ currentIndex: n.detail.current }),
          this.getRunRank(n.detail.current);
      },
      onGetUserInfo: function (n) {
        if (a.globalData.admin) {
          var t =
            this.data.runDataInfo[n.currentTarget.dataset.index - 1]
              .user_openId;
          wx.navigateTo({ url: "../../pages/record/record?user_openId=" + t });
        }
      },
      onReady: function () {},
      onShow: function () {},
      onHide: function () {},
      onUnload: function () {},
      onPullDownRefresh: function () {},
      onReachBottom: function () {},
      onShareAppMessage: function () {},
    });
  },
  { isPage: true, isComponent: true, currentFile: "pages/rank/rank.js" }
);
require("pages/rank/rank.js");
__wxCodeSpace__.batchAddCompiledTemplate(function (G, R, D, Q, gdc, X, Y, Z) {
  return {
    "pages/record/record": (() => {
      var P = "pages/record/record";
      var H = {};
      var I = {};
      H[""] = I[""] = (R, C, D, U) => {
        var L = R.c;
        var M = R.m;
        var O = R.r;
        var A = {
          farrestDistance: new Array(1),
          totalRunFrequency: new Array(1),
          totalDistance: new Array(1),
          avgRunDistance: new Array(1),
          avgRunSpeed: new Array(1),
          fastestSpeed: new Array(1),
          runLevelImage: new Array(1),
          totalRunTime: new Array(1),
        };
        var K = U === true;
        return {
          C: (C, T, E) => {
            E(
              "scroll-view",
              {},
              (N, C) => {
                if (C) L(N, "scroll-view-container");
                if (C || K || undefined) O(N, "scroll-y", true);
                if (C) R.r(N, "bindscrolltolower", "scrollToLower");
                if (C) R.r(N, "bindscrolltoupper", "scrollToUpper");
                if (C) O(N, "lower-threshold", "30");
                if (C) O(N, "upper-threshold", "0");
              },
              (C, T, E) => {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-record");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "total-distance");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "total-distance-left");
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {},
                              (C, T, E) => {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(
                                        N,
                                        "font-size: 100rpx; font-weight:bold;color: #fff;"
                                      );
                                  },
                                  (C, T) => {
                                    C || K || U.totalDistance
                                      ? T(Y(D.totalDistance), (N) => {
                                          A["totalDistance"][0] = (D, E, T) => {
                                            T(N, Y(D.totalDistance));
                                          };
                                        })
                                      : T();
                                  }
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(
                                        N,
                                        "color: #fff; font-size: 25rpx; margin-left: 10rpx;"
                                      );
                                  },
                                  (C, T) => {
                                    C ? T("公里") : T();
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {},
                              (C, T, E) => {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C) R.y(N, "color: rgb(173, 167, 167);");
                                  },
                                  (C, T) => {
                                    C ? T("累计跑量") : T();
                                  }
                                );
                              }
                            );
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "total-distance-right");
                          },
                          (C, T, E) => {
                            E(
                              "image",
                              {},
                              (N, C) => {
                                if (C || K || !!U.runLevelImage || undefined)
                                  O(
                                    N,
                                    "src",
                                    "../../images/" + Y(D.runLevelImage)
                                  );
                                A["runLevelImage"][0] = (D, E, T) => {
                                  O(
                                    N,
                                    "src",
                                    "../../images/" + Y(D.runLevelImage)
                                  );
                                  E(N);
                                };
                              },
                              (C) => {}
                            );
                          }
                        );
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-record-summary");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-summary-row");
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "summary-item");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {},
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 50rpx; font-weight:bold;color: #fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.totalRunFrequency
                                          ? T(Y(D.totalRunFrequency), (N) => {
                                              A["totalRunFrequency"][0] = (
                                                D,
                                                E,
                                                T
                                              ) => {
                                                T(N, Y(D.totalRunFrequency));
                                              };
                                            })
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "color: #fff;margin-left: 10rpx;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("次") : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "summary-describe");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(N, "color: rgb(173, 167, 167);");
                                      },
                                      (C, T) => {
                                        C ? T("累计跑步") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "summary-item");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {},
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 50rpx; font-weight:bold; color:#fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.totalRunTime
                                          ? T(Y(D.totalRunTime), (N) => {
                                              A["totalRunTime"][0] = (
                                                D,
                                                E,
                                                T
                                              ) => {
                                                T(N, Y(D.totalRunTime));
                                              };
                                            })
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "color: #fff;margin-left: 10rpx;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("小时") : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "summary-describe");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(N, "color: rgb(173, 167, 167);");
                                      },
                                      (C, T) => {
                                        C ? T("总时长") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "summary-item");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {},
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 50rpx; font-weight:bold;color: #fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.avgRunDistance
                                          ? T(Y(D.avgRunDistance), (N) => {
                                              A["avgRunDistance"][0] = (
                                                D,
                                                E,
                                                T
                                              ) => {
                                                T(N, Y(D.avgRunDistance));
                                              };
                                            })
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "color: #fff;margin-left: 10rpx;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("公里") : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "summary-describe");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(N, "color: rgb(173, 167, 167);");
                                      },
                                      (C, T) => {
                                        C ? T("平均跑量") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-summary-row");
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "summary-item");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {},
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 50rpx; font-weight:bold;color: #fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.avgRunSpeed
                                          ? T(Y(D.avgRunSpeed), (N) => {
                                              A["avgRunSpeed"][0] = (
                                                D,
                                                E,
                                                T
                                              ) => {
                                                T(N, Y(D.avgRunSpeed));
                                              };
                                            })
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "color: #fff;margin-left: 10rpx;"
                                          );
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "summary-describe");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(N, "color: rgb(173, 167, 167);");
                                      },
                                      (C, T) => {
                                        C ? T("平均配速") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "summary-item");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {},
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 50rpx; font-weight:bold; color: #fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.fastestSpeed
                                          ? T(Y(D.fastestSpeed), (N) => {
                                              A["fastestSpeed"][0] = (
                                                D,
                                                E,
                                                T
                                              ) => {
                                                T(N, Y(D.fastestSpeed));
                                              };
                                            })
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "color: #fff;margin-left: 10rpx;"
                                          );
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "summary-describe");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(N, "color: rgb(173, 167, 167);");
                                      },
                                      (C, T) => {
                                        C ? T("最快配速") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "summary-item");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {},
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 50rpx; font-weight:bold;color: #fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.farrestDistance
                                          ? T(Y(D.farrestDistance), (N) => {
                                              A["farrestDistance"][0] = (
                                                D,
                                                E,
                                                T
                                              ) => {
                                                T(N, Y(D.farrestDistance));
                                              };
                                            })
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "color: #fff;margin-left: 10rpx;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("公里") : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "summary-describe");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(N, "color: rgb(173, 167, 167);");
                                      },
                                      (C, T) => {
                                        C ? T("最远距离") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                      }
                    );
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-record-list");
                      },
                      (C, T, E, B, F) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-boarder-area");
                          },
                          (C) => {}
                        );
                        F(
                          D.runRecords,
                          "runStartTime",
                          U ? U.runRecords : undefined,
                          ["runRecords"],
                          (C, a, b, c, d, e, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {},
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "view-record-item");
                                    if (C) R.r(N, "bindlongpress", "onDelItem");
                                    if (C) R.r(N, "bindtap", "onRunDetail");
                                    if (C || K || d) R.d(N, "index", b);
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "record-date");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {},
                                          (C, T) => {
                                            C || K || Z(c, "runStartTime")
                                              ? T(Y(X(a).runStartTime))
                                              : T();
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "reocrd-detail");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "background-color: #15161b;border-radius: 3%; margin-right: 10rpx; margin-top: 10rpx;"
                                              );
                                          },
                                          (C, T, E) => {
                                            E(
                                              "image",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  O(
                                                    N,
                                                    "src",
                                                    "../../images/distance.png"
                                                  );
                                              },
                                              (C) => {}
                                            );
                                          }
                                        );
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C) L(N, "reocrd-describe");
                                          },
                                          (C, T, E) => {
                                            E(
                                              "view",
                                              {},
                                              (N, C) => {},
                                              (C, T, E) => {
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "color: #fff; font-size: 40rpx;font-weight: bold;"
                                                      );
                                                  },
                                                  (C, T) => {
                                                    C ||
                                                    K ||
                                                    Z(c, "runDistance")
                                                      ? T(Y(X(a).runDistance))
                                                      : T();
                                                  }
                                                );
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "margin-left: 10rpx;"
                                                      );
                                                  },
                                                  (C, T) => {
                                                    C ? T("公里") : T();
                                                  }
                                                );
                                              }
                                            );
                                            E(
                                              "view",
                                              {},
                                              (N, C) => {
                                                if (C) L(N, "record-speed");
                                              },
                                              (C, T, E, B) => {
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {},
                                                  (C, T) => {
                                                    C || K || Z(c, "runTime")
                                                      ? T(Y(X(a).runTime))
                                                      : T();
                                                  }
                                                );
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {},
                                                  (C, T) => {
                                                    C || K || Z(c, "runSpeed")
                                                      ? T(Y(X(a).runSpeed))
                                                      : T();
                                                  }
                                                );
                                                var f = X(a).runColarie ? 1 : 0;
                                                B(f, (C, T, E) => {
                                                  if (f === 1) {
                                                    E(
                                                      "text",
                                                      {},
                                                      (N, C) => {},
                                                      (C, T) => {
                                                        C ||
                                                        K ||
                                                        !!Z(c, "runColarie") ||
                                                        undefined
                                                          ? T(
                                                              Y(
                                                                Y(
                                                                  X(a)
                                                                    .runColarie
                                                                ) + "大卡"
                                                              )
                                                            )
                                                          : T();
                                                      }
                                                    );
                                                  } else {
                                                    E(
                                                      "text",
                                                      {},
                                                      (N, C) => {},
                                                      (C) => {}
                                                    );
                                                  }
                                                });
                                              }
                                            );
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "view-boarder-line");
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                        var f = X(D.runRecords).length ? 1 : 0;
                        B(f, (C, T, E) => {
                          if (f === 1) {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-bottom");
                              },
                              (C, T, E) => {
                                E(
                                  "text",
                                  {},
                                  (N, C) => {},
                                  (C, T) => {
                                    C ? T("没有更多了") : T();
                                  }
                                );
                              }
                            );
                          }
                        });
                      }
                    );
                  }
                );
              }
            );
          },
          B: A,
        };
      };
      return function (P) {
        return H[P];
      };
    })(),
  };
});
__wxRoute = "pages/record/record";
__wxRouteBegin = true;
__wxAppCurrentFile__ = "pages/record/record.js";
define(
  "pages/record/record.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var e = require("../../D38F48309100CF2FB5E920376AFB2D82.js"),
      t = getApp(),
      n = !0;
    Page({
      data: {
        totalDistance: 0,
        totalRunFrequency: 0,
        totalRunTime: 0,
        avgRunDistance: 0,
        avgRunSpeed: 0,
        fastestSpeed: 0,
        farrestDistance: 0,
        runLevelImage: "icon_run_level_1.png",
        runRecords: [],
        getRecordIndex: 0,
        getRecordNum: 10,
        checkOpenId: "",
      },
      onLoad: function (e) {
        "{}" == JSON.stringify(e)
          ? ((this.data.checkOpenId = t.globalData.openId),
            this.getRecordInfo())
          : ((this.data.checkOpenId = e.user_openId), this.getRecordInfo());
      },
      getRecordInfo: function () {
        var t = this;
        if (((n = !1), this.data.getRecordIndex > this.data.totalRunFrequency))
          return (
            wx.showToast({
              title: "没有更多记录啦~",
              icon: "none",
              duration: 1e3,
              mask: !1,
            }),
            void (n = !0)
          );
        wx.showLoading({ title: "加载中" });
        var a = {
          purpose: "getRunRecord",
          key: {
            openId: this.data.checkOpenId,
            recordIndex: this.data.getRecordIndex,
            recordNum: this.data.getRecordNum,
          },
        };
        e.request("", "GET", a)
          .then(function (e) {
            console.log(e);
            var a = e.data;
            a.totalDistance > 1e3
              ? (t.data.totalDistance = Math.floor(a.totalDistance))
              : (t.data.totalDistance = a.totalDistance),
              t.setData({
                totalDistance: t.data.totalDistance,
                totalRunFrequency: a.recordLen,
                totalRunTime: a.totalRunTime,
                avgRunDistance: a.avgRunDistance,
                avgRunSpeed: a.avgRunSpeed,
                fastestSpeed: a.fastestSpeed,
                farrestDistance: a.farrestDistance,
                runLevelImage:
                  "icon_run_level_" + t.calRunLevel(a.totalDistance) + ".png",
                runRecords: t.data.runRecords.concat(a.records),
              }),
              (t.data.getRecordIndex =
                t.data.getRecordIndex + t.data.getRecordNum),
              wx.hideLoading(),
              (n = !0);
          })
          .catch(function (e) {
            console.log(e), wx.hideLoading(), (n = !0);
          });
      },
      calRunLevel: function (e) {
        var t = 1;
        return (
          e < 10
            ? (t = 1)
            : 10 <= e && e < 20
            ? (t = 2)
            : 20 <= e && e < 30
            ? (t = 3)
            : 30 <= e && e < 50
            ? (t = 4)
            : 50 <= e && e < 100
            ? (t = 5)
            : 100 <= e && e < 150
            ? (t = 6)
            : 150 <= e && e < 200
            ? (t = 7)
            : 200 <= e && e < 300
            ? (t = 8)
            : 300 <= e && e < 400
            ? (t = 9)
            : 400 <= e && e < 500
            ? (t = 10)
            : 500 <= e && e < 1e3
            ? (t = 11)
            : e >= 1e3 && (t = 12),
          t
        );
      },
      scrollToLower: function (e) {
        n ? this.getRecordInfo() : console.log("上次请求还未完成");
      },
      scrollToUpper: function (e) {},
      onDelItem: function (t) {
        var n = t.currentTarget.dataset.index,
          a = this;
        wx.showModal({
          title: "删除记录",
          content: "跑步记录删除后无法恢复，确认删除吗？",
          success: function (t) {
            if (t.confirm) {
              var o = {
                purpose: "delRunRecord",
                key: {
                  openId: a.data.checkOpenId,
                  runTime: a.data.runRecords[n].runStartTime,
                  runDistance: a.data.runRecords[n].runDistance,
                },
              };
              e.request("", "POST", o)
                .then(function (e) {
                  console.log(e);
                  var t = e.data;
                  a.data.runRecords.splice(n, 1),
                    a.setData({
                      totalDistance: t.totalDistance,
                      totalRunFrequency: t.recordLen,
                      totalRunTime: t.totalRunTime,
                      avgRunDistance: t.avgRunDistance,
                      avgRunSpeed: t.avgRunSpeed,
                      fastestSpeed: t.fastestSpeed,
                      farrestDistance: t.farrestDistance,
                      runLevelImage:
                        "icon_run_level_" +
                        a.calRunLevel(t.totalDistance) +
                        ".png",
                      runRecords: a.data.runRecords,
                    }),
                    (a.data.getRecordIndex = a.data.getRecordIndex - 1),
                    wx.showToast({
                      title: "删除成功",
                      icon: "none",
                      duration: 1e3,
                      mask: !1,
                    });
                })
                .catch(function (e) {
                  console.log(e);
                });
            }
          },
        });
      },
      onRunDetail: function (e) {
        var t = e.currentTarget.dataset.index;
        this.data.runRecords[t].runPoints &&
          wx.navigateTo({
            url:
              "../../pages/run/run?records=" +
              JSON.stringify(this.data.runRecords[t]),
          });
      },
      onReady: function () {},
      onShow: function () {},
      onHide: function () {},
      onUnload: function () {},
      onPullDownRefresh: function () {},
      onReachBottom: function () {},
      onShareAppMessage: function () {},
    });
  },
  { isPage: true, isComponent: true, currentFile: "pages/record/record.js" }
);
require("pages/record/record.js");
__wxCodeSpace__.batchAddCompiledTemplate(function (G, R, D, Q, gdc, X, Y, Z) {
  return {
    "pages/run/run": (() => {
      var P = "pages/run/run";
      var H = {};
      var I = {};
      H[""] = I[""] = (R, C, D, U) => {
        var L = R.c;
        var M = R.m;
        var O = R.r;
        var A = {};
        var K = U === true;
        return {
          C: (C, T, E, B) => {
            var a = D.runningState == 0 ? 1 : 0;
            B(a, (C, T, E) => {
              if (a === 1) {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "start-timer-view");
                  },
                  (C, T, E) => {
                    E(
                      "text",
                      {},
                      (N, C) => {
                        if (C || K || U.animation_countdown)
                          O(N, "animation", D.animation_countdown);
                      },
                      (C, T) => {
                        C || K || U.countdwnSecond
                          ? T(Y(D.countdwnSecond))
                          : T();
                      }
                    );
                  }
                );
              } else {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C)
                      R.y(N, "position: fixed;  width: 100%; height: 100%;");
                  },
                  (C, T, E, B) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "content");
                        if (C || K || !!U.mapViewHeight || undefined)
                          R.y(N, "height: " + Y(D.mapViewHeight) + ";");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "map-wrap");
                          },
                          (C, T, E) => {
                            E(
                              "map",
                              {},
                              (N, C) => {
                                if (C) R.i(N, "map");
                                if (C || K || U.isSatelliteStyle)
                                  O(N, "enable-satellite", D.isSatelliteStyle);
                                if (C || K || U.longitude)
                                  O(N, "longitude", D.longitude);
                                if (C) O(N, "show-location", "false");
                                if (C || K || U.latitude)
                                  O(N, "latitude", D.latitude);
                                if (C) O(N, "scale", "16");
                                if (C || K || U.markers)
                                  O(N, "markers", D.markers);
                                if (C || K || U.polyline)
                                  O(N, "polyline", D.polyline);
                              },
                              (C) => {}
                            );
                          }
                        );
                      }
                    );
                    var b = D.runningState == 1 || D.runningState == 2 ? 1 : 0;
                    B(b, (C, T, E) => {
                      if (b === 1) {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-run-speed");
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-run-speed-item");
                              },
                              (C, T, E) => {
                                E(
                                  "image",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      O(N, "src", "../../images/distance.png");
                                    if (C) O(N, "mode", "aspectFit");
                                  },
                                  (C) => {}
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(
                                        N,
                                        "font-size: 45rpx; font-weight: bold;"
                                      );
                                  },
                                  (C, T) => {
                                    C || K || U.runDistance
                                      ? T(Y(D.runDistance))
                                      : T();
                                  }
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {},
                                  (C, T) => {
                                    C ? T("公里") : T();
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-run-speed-item");
                              },
                              (C, T, E) => {
                                E(
                                  "image",
                                  {},
                                  (N, C) => {
                                    if (C) O(N, "src", "../../images/time.png");
                                    if (C) O(N, "mode", "aspectFit");
                                  },
                                  (C) => {}
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(
                                        N,
                                        "font-size: 45rpx; font-weight: bold;"
                                      );
                                  },
                                  (C, T) => {
                                    C || K || U.runTime ? T(Y(D.runTime)) : T();
                                  }
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {},
                                  (C, T) => {
                                    C ? T("用时") : T();
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-run-speed-item");
                              },
                              (C, T, E) => {
                                E(
                                  "image",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      O(N, "src", "../../images/speed.png");
                                    if (C) O(N, "mode", "aspectFit");
                                  },
                                  (C) => {}
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(
                                        N,
                                        "font-size: 45rpx; font-weight: bold;"
                                      );
                                  },
                                  (C, T) => {
                                    C || K || U.runSpeed
                                      ? T(Y(D.runSpeed))
                                      : T();
                                  }
                                );
                                E(
                                  "text",
                                  {},
                                  (N, C) => {},
                                  (C, T) => {
                                    C ? T("实时配速") : T();
                                  }
                                );
                              }
                            );
                          }
                        );
                      }
                    });
                    var c = D.runningState == 1 || D.runningState == 2 ? 1 : 0;
                    B(c, (C, T, E) => {
                      if (c === 1) {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-run-control");
                          },
                          (C, T, E, B) => {
                            var d =
                              D.runningState == 1
                                ? 1
                                : D.runningState == 2
                                ? 2
                                : 0;
                            B(d, (C, T, E) => {
                              if (d === 1) {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) R.r(N, "bindtap", "pauseRun");
                                    if (C) L(N, "view-pause");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          O(N, "src", "../../images/pause.png");
                                        if (C) O(N, "mode", "aspectFit");
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {},
                                      (C, T) => {
                                        C ? T("暂停") : T();
                                      }
                                    );
                                  }
                                );
                              } else if (d === 2) {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "view-select-stop");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) R.r(N, "bindtap", "stopRun");
                                        if (C) L(N, "view-stop");
                                        if (C || K || U.animation_stop)
                                          O(N, "animation", D.animation_stop);
                                      },
                                      (C, T, E) => {
                                        E(
                                          "image",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              O(
                                                N,
                                                "src",
                                                "../../images/stop.png"
                                              );
                                            if (C) O(N, "mode", "aspectFit");
                                          },
                                          (C) => {}
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {},
                                          (C, T) => {
                                            C ? T("结束") : T();
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) R.r(N, "bindtap", "startRun");
                                        if (C) L(N, "view-continue");
                                        if (C || K || U.animation_continue)
                                          O(
                                            N,
                                            "animation",
                                            D.animation_continue
                                          );
                                      },
                                      (C, T, E) => {
                                        E(
                                          "image",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              O(
                                                N,
                                                "src",
                                                "../../images/start-run.png"
                                              );
                                            if (C) O(N, "mode", "aspectFit");
                                          },
                                          (C) => {}
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {},
                                          (C, T) => {
                                            C ? T("继续") : T();
                                          }
                                        );
                                      }
                                    );
                                  }
                                );
                              }
                            });
                          }
                        );
                      }
                    });
                    var d = D.runningState != 3 ? 1 : 0;
                    B(d, (C, T, E) => {
                      if (d === 1) {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-map-btn");
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-mapStyle");
                                if (C) R.r(N, "bindtap", "onChangeMapStyle");
                              },
                              (C, T, E) => {
                                E(
                                  "image",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      O(N, "src", "../../images/style.png");
                                  },
                                  (C) => {}
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-mapShare");
                              },
                              (C, T, E) => {
                                E(
                                  "button",
                                  {},
                                  (N, C) => {
                                    if (C) O(N, "open-type", "share");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          O(N, "src", "../../images/share.png");
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-feedback");
                              },
                              (C, T, E) => {
                                E(
                                  "image",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      O(N, "src", "../../images/feedback.png");
                                  },
                                  (C) => {}
                                );
                                E(
                                  "button",
                                  {},
                                  (N, C) => {
                                    if (C) O(N, "open-type", "contact");
                                    if (C) R.y(N, "width: 100%;");
                                    if (C) L(N, "view-contact-btn");
                                  },
                                  (C) => {}
                                );
                              }
                            );
                          }
                        );
                      }
                    });
                    var e = D.runningState == 3 ? 1 : 0;
                    B(e, (C, T, E) => {
                      if (e === 1) {
                        E(
                          "scroll-view",
                          {},
                          (N, C) => {
                            if (C) L(N, "scroll-view-container");
                            if (C || K || undefined) O(N, "scroll-y", true);
                          },
                          (C, T, E, B) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "scroll-view-container-header-top");
                              },
                              (C) => {}
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-run-result");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "result-user-info");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) R.i(N, "user-info-icon");
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(U.avator, "length") || U.avator
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(D.avator).length
                                              ? D.avator
                                              : "../../images/avator.png"
                                          );
                                        if (C) O(N, "mode", "aspectFit");
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "user-info-text");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "padding-bottom: 10rpx;font-size:  35rpx; color: #fff; font-weight: bold;"
                                              );
                                          },
                                          (C, T) => {
                                            C ||
                                            K ||
                                            !!(
                                              Z(U.nickname, "length") ||
                                              U.nickname
                                            ) ||
                                            undefined
                                              ? T(
                                                  Y(
                                                    X(D.nickname).length
                                                      ? D.nickname
                                                      : "跑友"
                                                  )
                                                )
                                              : T();
                                          }
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "color: rgb(122, 118, 118);"
                                              );
                                          },
                                          (C, T) => {
                                            C || K || U.runStartTimeStr
                                              ? T(Y(D.runStartTimeStr))
                                              : T();
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "user-info-setting");
                                        if (C)
                                          R.r(N, "bindtap", "onSettingUseInfo");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "image",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              O(
                                                N,
                                                "src",
                                                "../../images/setting.png"
                                              );
                                          },
                                          (C) => {}
                                        );
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "result-run-distance");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 100rpx; font-weight: bold; color: #fff;"
                                          );
                                      },
                                      (C, T) => {
                                        C || K || U.runDistance
                                          ? T(Y(D.runDistance))
                                          : T();
                                      }
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size: 40rpx;  margin-left:15rpx;color: rgb(105, 100, 100); font-weight: bold;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("公里") : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "result-run-speed-bar");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "speed-bar-left");
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size:30rpx;color: rgb(250,100,0); padding: 5rpx;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("慢") : T();
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "speed-bar-middle");
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "font-size:30rpx;color: rgb(100,250,0); padding: 5rpx;"
                                          );
                                      },
                                      (C, T) => {
                                        C ? T("快") : T();
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "speed-bar-right");
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "result-run-detail-info");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {},
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "font-size: 50rpx;font-weight: bold;"
                                              );
                                          },
                                          (C, T) => {
                                            C || K || U.avgSpeed
                                              ? T(Y(D.avgSpeed))
                                              : T();
                                          }
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "font-size: 30rpx;margin-top: 20rpx;"
                                              );
                                          },
                                          (C, T) => {
                                            C ? T("平均配速") : T();
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {},
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "font-size: 50rpx;font-weight: bold;"
                                              );
                                          },
                                          (C, T) => {
                                            C || K || U.runTime
                                              ? T(Y(D.runTime))
                                              : T();
                                          }
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "font-size: 30rpx;margin-top: 20rpx;"
                                              );
                                          },
                                          (C, T) => {
                                            C ? T("用时") : T();
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {},
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "font-size: 50rpx;font-weight: bold;"
                                              );
                                          },
                                          (C, T) => {
                                            C || K || U.runColarie
                                              ? T(Y(D.runColarie))
                                              : T();
                                          }
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "font-size: 30rpx;margin-top: 20rpx;"
                                              );
                                          },
                                          (C, T) => {
                                            C ? T("消耗大卡") : T();
                                          }
                                        );
                                      }
                                    );
                                  }
                                );
                              }
                            );
                            var f = X(D.speedDetailArr).length > 1 ? 1 : 0;
                            B(f, (C, T, E) => {
                              if (f === 1) {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "view-run-detail-speed");
                                  },
                                  (C, T, E, B, F) => {
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          R.y(
                                            N,
                                            "display:flex;justify-content: center; width:150rpx;font-size: 35rpx; margin-top: 20rpx; color: rgb(145,145,145);"
                                          );
                                      },
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {},
                                          (C, T) => {
                                            C ? T("配速") : T();
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "detail-speed-header");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {},
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  R.y(
                                                    N,
                                                    "font-size: 50rpx;font-weight: bold;"
                                                  );
                                              },
                                              (C, T) => {
                                                C || K || U.minSpeed
                                                  ? T(Y(D.minSpeed))
                                                  : T();
                                              }
                                            );
                                            E(
                                              "view",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  R.y(
                                                    N,
                                                    "display: flex; flex-direction: row;align-items: center;justify-content: center;"
                                                  );
                                              },
                                              (C, T, E) => {
                                                E(
                                                  "view",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "width: 10rpx;height: 10rpx;border-radius: 2rpx; background-color: #f00;"
                                                      );
                                                  },
                                                  (C) => {}
                                                );
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "font-size: 30rpx;margin-left:10rpx;"
                                                      );
                                                  },
                                                  (C, T) => {
                                                    C ? T("最慢") : T();
                                                  }
                                                );
                                              }
                                            );
                                          }
                                        );
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {},
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  R.y(
                                                    N,
                                                    "font-size: 50rpx;font-weight: bold;"
                                                  );
                                              },
                                              (C, T) => {
                                                C || K || U.avgSpeed
                                                  ? T(Y(D.avgSpeed))
                                                  : T();
                                              }
                                            );
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  R.y(N, "font-size: 30rpx;");
                                              },
                                              (C, T) => {
                                                C ? T("平均") : T();
                                              }
                                            );
                                          }
                                        );
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {},
                                          (C, T, E) => {
                                            E(
                                              "text",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  R.y(
                                                    N,
                                                    "font-size: 50rpx;font-weight: bold;"
                                                  );
                                              },
                                              (C, T) => {
                                                C || K || U.maxSpeed
                                                  ? T(Y(D.maxSpeed))
                                                  : T();
                                              }
                                            );
                                            E(
                                              "view",
                                              {},
                                              (N, C) => {
                                                if (C)
                                                  R.y(
                                                    N,
                                                    "display: flex; flex-direction: row;align-items: center;justify-content: center;"
                                                  );
                                              },
                                              (C, T, E) => {
                                                E(
                                                  "view",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "width: 10rpx;height: 10rpx;border-radius: 2rpx; background-color: #0f0;"
                                                      );
                                                  },
                                                  (C) => {}
                                                );
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "font-size: 30rpx;margin-left:10rpx;"
                                                      );
                                                  },
                                                  (C, T) => {
                                                    C ? T("最快") : T();
                                                  }
                                                );
                                              }
                                            );
                                          }
                                        );
                                      }
                                    );
                                    E(
                                      "view",
                                      {},
                                      (N, C) => {
                                        if (C) L(N, "detail-speed-main-title");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C) R.y(N, "width: 150rpx");
                                          },
                                          (C, T) => {
                                            C ? T("公里") : T();
                                          }
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              R.y(
                                                N,
                                                "width: 325rpx; text-align: left;"
                                              );
                                          },
                                          (C, T) => {
                                            C ? T("配速（/公里）") : T();
                                          }
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {
                                            if (C) R.y(N, "width: 200rpx;");
                                          },
                                          (C, T) => {
                                            C ? T("累计用时") : T();
                                          }
                                        );
                                      }
                                    );
                                    F(
                                      D.speedDetailArr,
                                      "time",
                                      U ? U.speedDetailArr : undefined,
                                      ["speedDetailArr"],
                                      (C, g, h, i, j, k, T, E) => {
                                        E(
                                          "view",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              L(N, "detail-speed-main-cnt");
                                          },
                                          (C, T, E, B) => {
                                            var l =
                                              X(g).nowDistance != "" ? 1 : 0;
                                            B(l, (C, T, E) => {
                                              if (l === 1) {
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(N, "width: 150rpx");
                                                  },
                                                  (C, T) => {
                                                    C ||
                                                    K ||
                                                    Z(i, "nowDistance")
                                                      ? T(Y(X(g).nowDistance))
                                                      : T();
                                                  }
                                                );
                                              }
                                            });
                                            var m =
                                              X(g).nowDistance != "" ? 1 : 0;
                                            B(m, (C, T, E) => {
                                              if (m === 1) {
                                                E(
                                                  "view",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      L(
                                                        N,
                                                        "speed-main-cnt-bar"
                                                      );
                                                    if (C)
                                                      R.y(N, "width: 325rpx;");
                                                  },
                                                  (C, T, E) => {
                                                    E(
                                                      "view",
                                                      {},
                                                      (N, C) => {
                                                        if (C)
                                                          R.y(
                                                            N,
                                                            "width: 150rpx; height:20rpx;background-color: rgb(100, 105, 105);"
                                                          );
                                                      },
                                                      (C, T, E) => {
                                                        E(
                                                          "view",
                                                          {},
                                                          (N, C) => {
                                                            if (C)
                                                              L(
                                                                N,
                                                                "speed-main-cnt-bar-color"
                                                              );
                                                            if (
                                                              C ||
                                                              K ||
                                                              !!Z(i, "width") ||
                                                              undefined
                                                            )
                                                              R.y(
                                                                N,
                                                                "width:" +
                                                                  Y(
                                                                    X(g).width
                                                                  ) +
                                                                  "rpx"
                                                              );
                                                          },
                                                          (C) => {}
                                                        );
                                                      }
                                                    );
                                                    E(
                                                      "text",
                                                      {},
                                                      (N, C) => {
                                                        if (C)
                                                          R.y(
                                                            N,
                                                            "margin-left:10rpx"
                                                          );
                                                      },
                                                      (C, T) => {
                                                        C ||
                                                        K ||
                                                        Z(i, "speedStr")
                                                          ? T(Y(X(g).speedStr))
                                                          : T();
                                                      }
                                                    );
                                                  }
                                                );
                                              }
                                            });
                                            var n =
                                              X(g).nowDistance != "" ? 1 : 0;
                                            B(n, (C, T, E) => {
                                              if (n === 1) {
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(N, "width: 200rpx;");
                                                  },
                                                  (C, T) => {
                                                    C ||
                                                    K ||
                                                    Z(i, "totalTimeStr")
                                                      ? T(Y(X(g).totalTimeStr))
                                                      : T();
                                                  }
                                                );
                                              } else {
                                                E(
                                                  "text",
                                                  {},
                                                  (N, C) => {
                                                    if (C)
                                                      R.y(
                                                        N,
                                                        "width: 100%;padding-left: 150rpx; text-align: left; font-size: 25rpx;"
                                                      );
                                                  },
                                                  (C, T) => {
                                                    C ||
                                                    K ||
                                                    Z(i, "totalTimeStr")
                                                      ? T(Y(X(g).totalTimeStr))
                                                      : T();
                                                  }
                                                );
                                              }
                                            });
                                          }
                                        );
                                      }
                                    );
                                  }
                                );
                              }
                            });
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-run-bottom-ad");
                              },
                              (C, T, E) => {
                                E(
                                  "ad-custom",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      O(
                                        N,
                                        "unit-id",
                                        "adunit-62342aa534f28214"
                                      );
                                  },
                                  (C) => {}
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "scroll-view-container-bottom");
                              },
                              (C) => {}
                            );
                          }
                        );
                      }
                    });
                    var f = D.runningState == 3 ? 1 : 0;
                    B(f, (C, T, E) => {
                      if (f === 1) {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-run-share");
                          },
                          (C, T, E, B) => {
                            var g = !D.isCheckRecord ? 1 : 0;
                            B(g, (C, T, E) => {
                              if (g === 1) {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "run-share-finish");
                                    if (C) R.r(N, "bindtap", "onFinish");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C)
                                          O(
                                            N,
                                            "src",
                                            "../../images/finish-run.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {},
                                      (C, T) => {
                                        C ? T("完成跑步") : T();
                                      }
                                    );
                                  }
                                );
                              }
                            });
                            var h = !D.isCheckRecord ? 1 : 0;
                            B(h, (C, T, E) => {
                              if (h === 1) {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "run-share-share");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "button",
                                      {},
                                      (N, C) => {
                                        if (C) O(N, "plain", "true");
                                        if (C) R.y(N, "border:none");
                                        if (C) O(N, "open-type", "share");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "image",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              O(
                                                N,
                                                "src",
                                                "../../images/share-run.png"
                                              );
                                          },
                                          (C) => {}
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {},
                                          (C, T) => {
                                            C ? T("分享记录") : T();
                                          }
                                        );
                                      }
                                    );
                                  }
                                );
                              } else {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "run-share-share");
                                    if (C) R.y(N, "width: 90%;");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "button",
                                      {},
                                      (N, C) => {
                                        if (C) O(N, "plain", "true");
                                        if (C) R.y(N, "border:none");
                                        if (C) O(N, "open-type", "share");
                                      },
                                      (C, T, E) => {
                                        E(
                                          "image",
                                          {},
                                          (N, C) => {
                                            if (C)
                                              O(
                                                N,
                                                "src",
                                                "../../images/share-run.png"
                                              );
                                          },
                                          (C) => {}
                                        );
                                        E(
                                          "text",
                                          {},
                                          (N, C) => {},
                                          (C, T) => {
                                            C ? T("分享记录") : T();
                                          }
                                        );
                                      }
                                    );
                                  }
                                );
                              }
                            });
                          }
                        );
                      }
                    });
                  }
                );
              }
            });
            var b = D.showPopupMask ? 1 : 0;
            B(b, (C, T, E) => {
              if (b === 1) {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-popup-bg");
                  },
                  (C) => {}
                );
              }
            });
            var c = D.showPopupMask ? 1 : 0;
            B(c, (C, T, E) => {
              if (c === 1) {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-wrapper");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-popup-mask");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-popup-mask-top");
                          },
                          (C, T, E) => {
                            E(
                              "image",
                              {},
                              (N, C) => {
                                if (C) R.r(N, "bindtap", "onCancelAvator");
                                if (C) L(N, "image-cancel");
                                if (C)
                                  O(N, "src", "../../images/dialog_cancel.png");
                              },
                              (C) => {}
                            );
                            E(
                              "text",
                              {},
                              (N, C) => {},
                              (C, T) => {
                                C ? T("修改头像昵称") : T();
                              }
                            );
                          }
                        );
                        E(
                          "button",
                          {},
                          (N, C) => {
                            if (C) L(N, "btn-choose-avator");
                            if (C) O(N, "open-type", "chooseAvatar");
                            if (C)
                              R.v(
                                N,
                                "chooseavatar",
                                "onChooseAvatar",
                                !1,
                                !1,
                                !1,
                                !1
                              );
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-choose-avator");
                              },
                              (C, T, E) => {
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "view-choose-avator-mask");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "text",
                                      {},
                                      (N, C) => {},
                                      (C, T) => {
                                        C ? T("修改头像") : T();
                                      }
                                    );
                                  }
                                );
                                E(
                                  "view",
                                  {},
                                  (N, C) => {
                                    if (C) L(N, "view-choose-avator-image");
                                  },
                                  (C, T, E) => {
                                    E(
                                      "image",
                                      {},
                                      (N, C) => {
                                        if (C) O(N, "mode", "widthFix");
                                        if (
                                          C ||
                                          K ||
                                          !!(
                                            Z(U.avator, "length") || U.avator
                                          ) ||
                                          undefined
                                        )
                                          O(
                                            N,
                                            "src",
                                            X(D.avator).length
                                              ? D.avator
                                              : "../../images/avator.png"
                                          );
                                      },
                                      (C) => {}
                                    );
                                  }
                                );
                              }
                            );
                          }
                        );
                        E(
                          "form",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-form");
                            if (C) R.r(N, "bindsubmit", "onSave");
                          },
                          (C, T, E) => {
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-popup-mask-nickname");
                              },
                              (C, T, E) => {
                                E(
                                  "input",
                                  {},
                                  (N, C) => {
                                    if (C) O(N, "type", "nickname");
                                    if (C) O(N, "maxlength", "20");
                                    if (C) O(N, "name", "nickname");
                                    if (C)
                                      O(
                                        N,
                                        "placeholder-class",
                                        "placeholder-class"
                                      );
                                    if (C || K || U.nickname)
                                      O(N, "value", D.nickname);
                                    if (C || K || U.nickname)
                                      O(N, "placeholder", D.nickname);
                                  },
                                  (C) => {}
                                );
                              }
                            );
                            E(
                              "view",
                              {},
                              (N, C) => {
                                if (C) L(N, "view-save-setting");
                              },
                              (C, T, E) => {
                                E(
                                  "button",
                                  {},
                                  (N, C) => {
                                    if (C) O(N, "form-type", "submit");
                                    if (C) O(N, "plain", "true");
                                    if (C)
                                      R.y(
                                        N,
                                        "border:none; width: 400rpx;height: 80rpx; font-size: 40rpx;"
                                      );
                                  },
                                  (C, T) => {
                                    C ? T("保存设置") : T();
                                  }
                                );
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
              }
            });
          },
          B: A,
        };
      };
      return function (P) {
        return H[P];
      };
    })(),
  };
});
__wxRoute = "pages/run/run";
__wxRouteBegin = true;
__wxAppCurrentFile__ = "pages/run/run.js";
define(
  "pages/run/run.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    var t,
      a,
      e = require("../../@babel/runtime/helpers/regeneratorRuntime"),
      i = require("../../@babel/runtime/helpers/asyncToGenerator"),
      n = require("../../D38F48309100CF2FB5E920376AFB2D82.js"),
      o = require("../../7150F4A29100CF2F17369CA5E50C2D82.js"),
      r = 0,
      s = 0,
      d = 0,
      l = 0,
      u = [],
      c = 0,
      h = 0,
      p = 0,
      g = !1,
      S = getApp();
    Page({
      data: {
        latitude: "39.872801",
        longitude: "116.413426",
        scale: 16,
        markers: [],
        polyline: [
          {
            points: [],
            color: "#FB8337",
            colorList: [],
            width: 6,
            arrowLine: !0,
          },
        ],
        runningState: 0,
        runDistance: 0,
        runSpeed: "0′0″",
        runStartTime: 0,
        runTime: "00:00:00",
        onHideTimeStamp: 0,
        isPressStartBtn: !1,
        mapStyleKeys: [
          "RQIBZ-BJ56P-4L3DL-L2C6C-MLMHT-BNB2L",
          "6YMBZ-72KKI-PN2GY-5634L-XSBAK-OBFYA",
          "IW4BZ-TPJC6-P44SB-ED4PH-HE4SO-SZBOF",
        ],
        mapStyleKey: 0,
        mapStyleIndex: 1,
        mapStyleChoose: 1,
        countdwnSecond: "",
        mapViewHeight: "100%",
        speedDetailArr: [],
        isCheckRecord: !1,
        showPopupMask: !1,
        isSatelliteStyle: !1,
      },
      initParms: function () {
        (r = 0),
          (s = 0),
          (d = 0),
          (l = 0),
          (u = []),
          (c = 0),
          (h = 0),
          (p = 0),
          (g = !1),
          (this.data.isSatelliteStyle = S.globalData.enableSatelliteStyle);
      },
      onLoad: function (t) {
        if (
          (this.initParms(),
          (c = wx.getSystemInfoSync().SDKVersion),
          (this.data.mapContext = wx.createMapContext("map")),
          "{}" == JSON.stringify(t))
        ) {
          (r = 0),
            (s = 0),
            (d = 0),
            (l = 0),
            (u = []),
            wx.setNavigationBarColor({
              frontColor: "#ffffff",
              backgroundColor: "#F33756",
            }),
            wx.canIUse("hideHomeButton") && wx.hideHomeButton();
          var a = this;
          setTimeout(function () {
            a.countdown();
          }, 500),
            o.info("onLoad countdown");
        } else
          "index" == t.getInPage
            ? (this.getInFromIndex(t), o.info("onLoad getInFromIndex"))
            : (this.getInFromRecord(t), o.info("onLoad getInFromRecord"));
      },
      getInFromIndex: function (t) {
        wx.setNavigationBarColor({
          frontColor: "#ffffff",
          backgroundColor: "#F33756",
        }),
          wx.canIUse("hideHomeButton") && wx.hideHomeButton();
        var a = JSON.parse(t.records);
        (u = a.runPoints ? a.runPoints : []),
          (s = this.timeStrToSecond(a.runTime)),
          (d = a.runDistance),
          (this.data.polyline[0].points = u.map(function (t) {
            return { latitude: t.latitude, longitude: t.longitude };
          }));
        var e = u.length;
        if (e > 0) {
          var i = {
            id: 0,
            iconPath: "../../images/road-start.png",
            latitude: u[0].latitude,
            longitude: u[0].longitude,
            width: 60,
            height: 60,
          };
          (this.data.markers = [i]),
            (this.data.speedDetailArr = a.speedDetailArr
              ? a.speedDetailArr
              : []),
            this.data.speedDetailArr.length && this.data.speedDetailArr.pop();
        }
        (l = 0),
          (this.data.runStartTime = a.runStartTime),
          (this.data.runStartTimeStr = n.format(new Date(a.runStartTime))),
          this.setData({
            runDistance: a.runDistance,
            runTime: a.runTime,
            runStartTimeStr: this.data.runStartTimeStr,
            latitude: e ? u[e - 1].latitude : this.data.latitude,
            longitude: e ? u[e - 1].longitude : this.data.longitude,
            runningState: 1,
            polyline: this.data.polyline,
            markers: this.data.markers,
            isPressStartBtn: !0,
            isSatelliteStyle: this.data.isSatelliteStyle,
          }),
          this.startGetGPS();
      },
      getInFromRecord: function (t) {
        var a = JSON.parse(t.records);
        (u = a.runPoints ? a.runPoints : []),
          (s = this.timeStrToSecond(a.runTime)),
          (d = a.runDistance),
          this.calRunSpeedColor();
        var e = u.length;
        if (e > 1) {
          var i = {
              id: 0,
              iconPath: "../../images/road-start.png",
              latitude: u[0].latitude,
              longitude: u[0].longitude,
              width: 60,
              height: 60,
            },
            n = {
              id: 1,
              iconPath: "../../images/road-stop.png",
              latitude: u[e - 1].latitude,
              longitude: u[e - 1].longitude,
              width: 60,
              height: 60,
            };
          (this.data.markers = [i, n]),
            (this.data.speedDetailArr = a.speedDetailArr
              ? a.speedDetailArr
              : []),
            this.addRunDistanceMarker(this.data.speedDetailArr);
        }
        this.setData({
          nickname: S.globalData.nickname,
          avator: S.globalData.avator,
          isCheckRecord: !0,
          runDistance: a.runDistance,
          runStartTimeStr: a.runStartTime,
          runTime: a.runTime,
          avgSpeed: a.runSpeed,
          runColarie: a.runColarie ? a.runColarie : "-",
          latitude: u.length ? u[0].latitude : this.data.latitude,
          longitude: u.length ? u[0].longitude : this.data.longitude,
          speedDetailArr: this.data.speedDetailArr,
          maxSpeed: a.maxSpeed ? a.maxSpeed : "-",
          minSpeed: a.minSpeed ? a.minSpeed : "-",
          runningState: 3,
          polyline: this.data.polyline,
          markers: this.data.markers,
          mapViewHeight: "650rpx",
        }),
          this.adjustMapScale(),
          console.log(this.data.speedDetailArr),
          console.log(this.data.polyline),
          this.onRewindTrackRoute();
      },
      checkAuthorize: function () {
        var t = this;
        wx.getSetting({
          success: function (a) {
            a.authSetting["scope.userLocationBackground"]
              ? t.getCurrentLocation()
              : wx.showModal({
                  title: "提示",
                  content:
                    '为确保后台定位精确，请先设置位置为"使用小程序期间和离开后" 再进行跑步',
                  showCancel: !1,
                  success: function (t) {
                    t.confirm && wx.openSetting();
                  },
                });
          },
          fail: function (t) {
            console.log(t);
          },
        });
      },
      getCurrentLocation: function () {
        var t = this;
        wx.authorize({
          scope: "scope.userLocation",
          success: function (a) {
            console.log(a),
              wx.getLocation({
                type: "gcj02",
                isHighAccuracy: !0,
                success: function (a) {
                  console.log(a),
                    t.setData({ latitude: a.latitude, longitude: a.longitude });
                },
                fail: function (t) {
                  console.log(t);
                },
              });
          },
          fail: function (t) {
            console.log(t);
          },
        });
      },
      convertTimeStr: function (t) {
        var a = parseInt(t / 3600),
          e = parseInt((t % 3600) / 60),
          i = t % 60;
        return (
          (a = a < 10 ? "0" + a : a) +
          ":" +
          (e = e < 10 ? "0" + e : e) +
          ":" +
          (i = i < 10 ? "0" + i : i)
        );
      },
      timeStrToSecond: function (t) {
        var a = t.split(":")[0],
          e = t.split(":")[1],
          i = t.split(":")[2];
        return Number(3600 * a) + Number(60 * e) + Number(i);
      },
      runTimer: function () {
        s++, this.setData({ runTime: this.convertTimeStr(s) });
      },
      toRadians: function (t) {
        return (t * Math.PI) / 180;
      },
      calPointDistance: function (t, a, e, i) {
        var n = this.toRadians(t),
          o = this.toRadians(e),
          r = n - o,
          s = this.toRadians(a) - this.toRadians(i);
        return (
          (6378137 *
            (2 *
              Math.asin(
                Math.sqrt(
                  Math.pow(Math.sin(r / 2), 2) +
                    Math.cos(n) * Math.cos(o) * Math.pow(Math.sin(s / 2), 2)
                )
              ))) /
          1e3
        );
      },
      getDistance: function (t, a, e, i) {
        var n = Math.floor(d);
        d += this.calPointDistance(t, a, e, i);
        var o = Math.floor(d);
        if (o > n) {
          var r = this.data.speedDetailArr.length,
            s = Date.parse(new Date()),
            l = parseInt((s - this.data.runStartTime) / 1e3) - p,
            u = r > 0 ? l - this.data.speedDetailArr[r - 1].totalTime : l;
          this.data.speedDetailArr.push({
            nowDistance: o,
            latitude: e,
            longitude: i,
            totalTime: l,
            totalTimeStr: this.convertTimeStr(l),
            speedStr: parseInt(u / 60) + "′" + parseInt(u % 60) + "″",
            speed: u,
            width: "",
          }),
            console.log(this.data.speedDetailArr);
        }
        return Number(d.toFixed(2));
      },
      runStateInit: function () {
        if (
          (o.info("runStateInit", this.data.runningState),
          1 == this.data.runningState)
        ) {
          var t = new Date();
          (this.data.runStartTime = Date.parse(t)),
            (this.data.runStartTimeStr = n.format(t)),
            this.setData({
              runningState: 1,
              runDistance: 0,
              runTime: "00:00:00",
              runSpeed: "0′0″",
              runStartTimeStr: this.data.runStartTimeStr,
              "polyline[0].points": [],
            }),
            (u = []);
        } else if (2 == this.data.runningState) {
          (p += (Date.parse(new Date()) - h) / 1e3),
            this.startAnimation(0, 0, 0),
            wx.removeStorage({
              key: S.globalData.openId,
              success: function (t) {
                console.log(t), o.info("removeStorage", t);
              },
            });
          var a = this;
          setTimeout(function () {
            a.setData({ runningState: 1 });
          }, 500);
        }
        (this.data.isPressStartBtn = !0), (l = 0);
      },
      setStartMarker: function (t, a) {
        this.data.markers = [
          {
            id: 0,
            iconPath: "../../images/road-start.png",
            latitude: t,
            longitude: a,
            width: 60,
            height: 60,
          },
        ];
      },
      dealLocationChange: function (t) {
        l++;
        var a = u.length;
        if (5 >= l)
          0 == a
            ? (this.setStartMarker(t.latitude, t.longitude),
              this.setData({
                latitude: t.latitude,
                longitude: t.longitude,
                markers: this.data.markers,
              }))
            : this.setData({ latitude: t.latitude, longitude: t.longitude });
        else if (
          (this.data.latitude != t.latitude ||
            this.data.longitude != t.longitude) &&
          this.data.isPressStartBtn
        ) {
          var e = this.data.runDistance;
          0 == a
            ? (this.setStartMarker(t.latitude, t.longitude),
              this.setData({ markers: this.data.markers }))
            : (e = this.getDistance(
                this.data.latitude,
                this.data.longitude,
                t.latitude,
                t.longitude
              ));
          var i = Date.parse(new Date());
          (a > 10 && (i - u[a - 1].currenttime) / 1e3 < 3) ||
            (u.push({
              latitude: t.latitude,
              longitude: t.longitude,
              speed: t.speed,
              currenttime: i,
            }),
            this.data.polyline[0].points.push({
              latitude: t.latitude,
              longitude: t.longitude,
            }));
          var n = "0′0″";
          t.speed > 0 &&
            (n =
              parseInt(1e3 / t.speed / 60) +
              "′" +
              parseInt((1e3 / t.speed) % 60) +
              "″"),
            this.setData({
              "polyline[0].points": this.data.polyline[0].points,
              latitude: t.latitude,
              longitude: t.longitude,
              runSpeed: n,
              runDistance: e,
            });
        }
      },
      startGetGPS: function () {
        var t = this;
        o.info("startGetGPS", g),
          wx.startLocationUpdateBackground({
            success: function () {
              g ||
                wx.onLocationChange(function (a) {
                  t.dealLocationChange(a);
                }),
                (g = !0);
            },
            fail: function (t) {
              console.log(t), o.info("startGetGPS", t);
            },
          });
      },
      startRun: function () {
        o.info("startRun", p),
          this.runStateInit(),
          wx.showToast({
            title: "开始跑步",
            icon: "none",
            duration: 1e3,
            mask: !1,
          }),
          p > 0 && this.startGetGPS();
        var t = this;
        r = setInterval(function () {
          t.runTimer();
        }, 1e3);
      },
      pauseRun: function () {
        o.info("pauseRun"),
          clearInterval(r),
          (g = !1),
          wx.showToast({
            title: "暂停跑步",
            icon: "none",
            duration: 1e3,
            mask: !1,
          }),
          (h = Date.parse(new Date())),
          this.setData({ runningState: 2, runTime: this.convertTimeStr(s) }),
          wx.offLocationChange(),
          wx.stopLocationUpdate(),
          (this.data.isPressStartBtn = !1),
          this.startAnimation(-120, 120, 1),
          this.SaveDataToDisk(0);
      },
      stopRun: function () {
        o.info("stopRun"),
          clearInterval(r),
          this.startAnimation(0, 0, 0),
          wx.showLoading({ title: "跑步数据汇总中", mask: !0 }),
          this.data.markers.push({
            id: 1,
            iconPath: "../../images/road-stop.png",
            longitude: this.data.longitude,
            latitude: this.data.latitude,
            width: 60,
            height: 60,
          });
        var t = parseFloat(d) + parseFloat(S.globalData.todayRunDistance);
        S.globalData.todayRunDistance = Number(t.toFixed(2));
        var a = Number(parseFloat(d).toFixed(2)),
          e = "0′0″";
        0 != a &&
          (e = parseInt(s / a / 60) + "′" + parseInt((s / a) % 60) + "″"),
          this.calRunSpeedColor();
        var i = this.countDetailSpeed(),
          n = i[0],
          l = i[1],
          c = this.data.speedDetailArr.length
            ? s -
              this.data.speedDetailArr[this.data.speedDetailArr.length - 1]
                .totalTime
            : s;
        c > 0 &&
          this.data.speedDetailArr.push({
            nowDistance: "",
            latitude: this.data.latitude,
            longitude: this.data.longitude,
            totalTime: s,
            totalTimeStr: "最后不足1公里用时：" + this.convertTimeStr(c),
            speedStr: "",
            speed: "",
            width: "",
          }),
          this.addRunDistanceMarker(this.data.speedDetailArr),
          this.setData({
            runningState: 3,
            markers: this.data.markers,
            avgSpeed: e,
            nickname: S.globalData.nickname,
            avator: S.globalData.avator,
            runColarie: d ? parseInt(62.5 * d) : 0,
            polyline: this.data.polyline,
            speedDetailArr: this.data.speedDetailArr,
            maxSpeed: parseInt(n / 60) + "′" + parseInt(n % 60) + "″",
            minSpeed: parseInt(l / 60) + "′" + parseInt(l % 60) + "″",
            mapViewHeight: "650rpx",
          }),
          wx.offLocationChange(),
          wx.stopLocationUpdate(),
          this.adjustMapScale();
        var h = u.length;
        if (h > 1e3) {
          for (var p = Math.ceil(h / 1e3), g = [], m = 0; m < h; m += p)
            g.push(u[m]);
          (u = g), console.log(u);
        }
        var f = {
          runDistance: a,
          runSpeed: e,
          runTime: this.data.runTime,
          runStartTime: this.data.runStartTime,
          runPoints: u,
          runColarie: this.data.runColarie,
          speedDetailArr: this.data.speedDetailArr,
          maxSpeed: this.data.maxSpeed,
          minSpeed: this.data.minSpeed,
        };
        (s = 0),
          (d = 0),
          (this.data.isPressStartBtn = !1),
          this.updateUserRecord(f),
          o.info("stopRun", f),
          setTimeout(function () {
            wx.hideLoading();
          }, 1e3),
          this.shareWeRun();
      },
      shareWeRun: function () {
        var t = parseInt(1e3 * this.data.runDistance);
        1 != this.compareVersion("2.14.0", c) &&
          t > 0 &&
          t < 1e5 &&
          wx.shareToWeRun({
            recordList: [{ typeId: 3001, distance: t }],
            success: function (t) {
              wx.showToast({ title: "打卡成功" });
            },
            fail: function (t) {
              wx.showToast({ icon: "none", title: "打卡失败" });
            },
          });
      },
      SaveDataToDisk: function (t) {
        o.info("SaveDataToDisk exitType " + t);
        var a = Number(parseFloat(d).toFixed(2)),
          e = "0′0″";
        0 != a &&
          (e = parseInt(s / a / 60) + "′" + parseInt((s / a) % 60) + "″");
        var i = this.countDetailSpeed(),
          n = i[0],
          r = i[1],
          l = this.data.speedDetailArr.length
            ? s -
              this.data.speedDetailArr[this.data.speedDetailArr.length - 1]
                .totalTime
            : s,
          c = JSON.parse(JSON.stringify(this.data.speedDetailArr));
        l > 0 &&
          c.push({
            nowDistance: "",
            latitude: this.data.latitude,
            longitude: this.data.longitude,
            totalTime: s,
            totalTimeStr: "最后不足1公里用时：" + this.convertTimeStr(l),
            speedStr: "",
            speed: "",
            width: "",
          });
        var h = {
          runDistance: a,
          runSpeed: e,
          runTime: this.data.runTime,
          runStartTime: this.data.runStartTime,
          runPoints: u,
          runColarie: d ? parseInt(62.5 * d) : 0,
          speedDetailArr: c,
          maxSpeed: parseInt(n / 60) + "′" + parseInt(n % 60) + "″",
          minSpeed: parseInt(r / 60) + "′" + parseInt(r % 60) + "″",
        };
        o.info("SaveDataToDisk", h),
          wx.setStorage({
            key: S.globalData.openId,
            data: { record: h, exitType: t },
            success: function (t) {
              console.log(t), o.info(t);
            },
            fail: function (t) {
              console.log(t), o.info(t);
            },
          });
      },
      getSpeedColor: function (t, a) {
        if ((a = 0 == a ? 0 : parseInt(1e3 / a)) < t)
          var e = t - a > 255 ? 0 : 255 - t + a,
            i =
              "#" +
              (n = (n = (e -= e % 10).toString(16)).length < 2 ? "0" + n : n) +
              "FF00";
        else {
          var n;
          e = 255 - (e = a - t > 255 ? 255 : a - t);
          i =
            "#FF" +
            (n = (n = (e -= e % 10).toString(16)).length < 2 ? "0" + n : n) +
            "00";
        }
        return i;
      },
      calRunSpeedColor: function () {
        var t = u.length;
        if (0 != t) {
          var a = 0 == d ? 0 : parseInt(s / d),
            e = {
              points: [],
              color: "#FB8337",
              colorList: [],
              width: 6,
              arrowLine: !0,
            };
          this.data.polyline = [];
          for (var i = 0; i < t; i++) {
            e.points.push({
              latitude: u[i].latitude,
              longitude: u[i].longitude,
            });
            var n = this.getSpeedColor(a, u[i].speed);
            e.colorList.push(n),
              ((0 == i % 49 && 0 != i) || i == t - 1) &&
                (this.data.polyline.push(JSON.parse(JSON.stringify(e))),
                (e.points = [
                  { latitude: u[i].latitude, longitude: u[i].longitude },
                ]),
                (e.colorList = []));
          }
        }
      },
      countDetailSpeed: function () {
        var t = 0,
          a = 0,
          e = 0;
        this.data.speedDetailArr.length > 0 &&
          ((t = this.data.speedDetailArr[0].speed),
          (a = this.data.speedDetailArr[0].speed));
        for (var i = 0; i < this.data.speedDetailArr.length; i++)
          this.data.speedDetailArr[i].speed > a
            ? ((a = this.data.speedDetailArr[i].speed), (e = i))
            : this.data.speedDetailArr[i].speed < t &&
              (t = this.data.speedDetailArr[i].speed);
        for (i = 0; i < this.data.speedDetailArr.length; i++) {
          var n =
            (this.data.speedDetailArr[e].speed -
              this.data.speedDetailArr[i].speed) /
            this.data.speedDetailArr[e].speed;
          this.data.speedDetailArr[i].width = parseInt(150 * (1 - n));
        }
        return console.log(this.data.speedDetailArr), [t, a];
      },
      addRunDistanceMarker: function (t) {
        var a = {
          iconPath: "../../images/road-stop.png",
          id: 2,
          latitude: 30.484483235677,
          longitude: 114.44521972656,
          width: 1,
          height: 1,
          label: {
            content: "1",
            fontSize: 10,
            color: "#FFFFFF",
            borderRadius: 10,
            borderWidth: 2,
            borderColor: "#FFFFFF",
            bgColor: "#252630",
            padding: 5,
            textAlign: "center",
            anchorX: -10,
            anchorY: -10,
          },
        };
        if (t.length > 2)
          for (var e = 0; e < t.length - 1; e++)
            (a.id = e + 2),
              (a.latitude = t[e].latitude),
              (a.longitude = t[e].longitude),
              (a.label.content = t[e].nowDistance.toString()),
              this.data.markers.push(JSON.parse(JSON.stringify(a)));
      },
      startAnimation: function (t, a, e) {
        var i = wx.createAnimation({ duration: 500 }),
          n = wx.createAnimation({ duration: 500 }),
          o = wx.getSystemInfoSync().windowWidth / 750;
        i
          .translate(t * o, 0)
          .opacity(e)
          .step(),
          n
            .translate(a * o, 0)
            .opacity(e)
            .step(),
          this.setData({
            animation_stop: i.export(),
            animation_continue: n.export(),
          });
      },
      adjustMapScale: function () {
        this.data.mapContext.includePoints({
          points: u,
          padding: [50, 30, 50, 30],
        });
      },
      checkGPS: function () {
        return wx.getSystemInfoSync().locationEnabled;
      },
      updateUserRecord: function (t) {
        var a = this,
          e = {
            purpose: "updateRunRecord",
            key: { openId: S.globalData.openId, record: t },
          };
        n.request("", "POST", e)
          .then(function (a) {
            console.log(a),
              o.info("updateUserRecord", a),
              (S.globalData.lastRunstartTime = t.runStartTime),
              wx.removeStorage({
                key: S.globalData.openId,
                success: function (t) {
                  console.log(t), o.info("removeStorage", t);
                },
              });
          })
          .catch(function (e) {
            console.log(e),
              o.info(e),
              wx.showModal({
                title: "提示",
                content: "网络异常!上传跑步记录失败,点击确定再次尝试？",
                success: function (e) {
                  e.confirm
                    ? (console.log("用户点击确定"), a.updateUserRecord(t))
                    : e.cancel && console.log("用户点击取消");
                },
              });
          });
      },
      onRecord: function () {
        wx.navigateTo({ url: "../../pages/record/record" });
      },
      onRank: function () {
        wx.navigateTo({ url: "../../pages/rank/rank" });
      },
      onLocate: function () {
        1 != this.data.runningState && this.getCurrentLocation();
      },
      onChangeMapStyle: function () {
        (this.data.isSatelliteStyle = !this.data.isSatelliteStyle),
          this.setData({ isSatelliteStyle: this.data.isSatelliteStyle }),
          (S.globalData.enableSatelliteStyle = this.data.isSatelliteStyle);
      },
      onRewindTrackRoute: function () {},
      onReady: function () {},
      onShow: function () {
        console.log("onShow"),
          o.info(
            "onShow",
            this.data.isPressStartBtn,
            this.data.onHideTimeStamp
          );
        var t = this;
        if (this.data.isPressStartBtn) {
          var a = Date.parse(new Date());
          0 == this.data.onHideTimeStamp
            ? (clearInterval(r),
              (s = parseInt(a - this.data.runStartTime) / 1e3))
            : (s += parseInt(a - this.data.onHideTimeStamp) / 1e3),
            (this.data.onHideTimeStamp = 0),
            (r = setInterval(function () {
              t.runTimer();
            }, 1e3));
        }
      },
      countdown: function () {
        this.setData({
          latitude: S.globalData.latitude,
          longitude: S.globalData.longitude,
          isSatelliteStyle: this.data.isSatelliteStyle,
        }),
          this.startGetGPS();
        var t = wx.createAnimation({ duration: 1e3, timingFunction: "ease" }),
          a = (wx.getSystemInfoSync().windowWidth, this);
        a.data.countdwnSecond = 4;
        var e = setInterval(function () {
          1 < a.data.countdwnSecond
            ? (t
                .scale(2, 2)
                .opacity(1)
                .step({ duration: 700 })
                .scale(1, 1)
                .opacity(0.01)
                .step({ duration: 300 }),
              a.setData({
                countdwnSecond: --a.data.countdwnSecond,
                animation_countdown: t.export(),
              }))
            : (clearInterval(e),
              wx.setNavigationBarColor({
                frontColor: "#ffffff",
                backgroundColor: "#252630",
              }),
              (a.data.runningState = 1),
              a.startRun());
        }, 1100);
      },
      onFinish: function () {
        wx.reLaunch({ url: "../../pages/index/index" });
      },
      onShareRecord: function () {},
      compareVersion: function (t, a) {
        (t = t.split(".")), (a = a.split("."));
        for (var e = Math.max(t.length, a.length); t.length < e; ) t.push("0");
        for (; a.length < e; ) a.push("0");
        for (var i = 0; i < e; i++) {
          var n = parseInt(t[i]),
            o = parseInt(a[i]);
          if (n > o) return 1;
          if (n < o) return -1;
        }
        return 0;
      },
      onSettingUseInfo: function () {
        if (S.globalData.hasPrivacyAuthrize) {
          var t = this;
          1 == this.compareVersion("2.10.4", c)
            ? wx.showToast({
                title: "您的微信版本太低，无法设置头像昵称",
                icon: "none",
                duration: 1e3,
                mask: !1,
              })
            : 1 == this.compareVersion("2.21.2", c)
            ? wx.getUserProfile({
                desc: "申请获取您的微信头像昵称",
                success: function (a) {
                  var e = a.userInfo;
                  console.log(e),
                    t.setData({ nickname: e.nickName, avator: e.avatarUrl }),
                    wx.downloadFile({
                      url: t.data.avator,
                      success: function (a) {
                        console.log(a),
                          200 == a.statusCode &&
                            ((t.data.avator = a.tempFilePath),
                            t.uploadAvatorInfo(),
                            (S.globalData.nickname = t.data.nickname),
                            (S.globalData.avator = t.data.avator));
                      },
                      fail: function (t) {
                        console.log(t);
                      },
                    });
                },
                fail: function (t) {
                  console.log("用户拒绝授权");
                },
              })
            : this.setData({ showPopupMask: !0 });
        } else
          wx.showToast({
            title: "没有取得您的授权，不支持设置~",
            icon: "none",
            duration: 1e3,
            mask: !1,
          });
      },
      onChooseAvatar: function (t) {
        (this.data.avator = t.detail.avatarUrl),
          this.setData({ avator: this.data.avator });
      },
      onSave:
        ((a = i(
          e().mark(function t(a) {
            var i, r;
            return e().wrap(
              function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      if (
                        ((i = 0),
                        (this.data.nickname = a.detail.value.nickname),
                        !(
                          this.data.avator.length > 0 &&
                          S.globalData.avator != this.data.avator
                        ))
                      ) {
                        t.next = 8;
                        break;
                      }
                      return (t.next = 5), this.uploadAvatorInfo();
                    case 5:
                      (i = t.sent), (t.next = 9);
                      break;
                    case 8:
                      this.data.nickname.length > 0 &&
                        S.globalData.nickname != this.data.nickname &&
                        ((r = {
                          purpose: "updateAvatorInfo",
                          key: {
                            openId: S.globalData.openId,
                            userinfo: {
                              nickname: this.data.nickname,
                              avator: this.data.avator,
                            },
                          },
                        }),
                        n
                          .request("", "POST", r)
                          .then(function (t) {
                            console.log(t), o.info("onSave", t);
                          })
                          .catch(function (t) {
                            console.log(t), o.info("onSave", t);
                          }));
                    case 9:
                      0 == i
                        ? ((S.globalData.nickname = this.data.nickname),
                          (S.globalData.avator = this.data.avator),
                          this.setData({
                            showPopupMask: !1,
                            nickname: S.globalData.nickname,
                            avator: S.globalData.avator,
                          }),
                          wx.showToast({
                            title: "修改成功",
                            icon: "none",
                            duration: 1e3,
                            mask: !1,
                          }))
                        : (this.setData({ showPopupMask: !1 }),
                          wx.showToast({
                            title: "修改失败，请稍后重试",
                            icon: "none",
                            duration: 1e3,
                            mask: !1,
                          }));
                    case 10:
                    case "end":
                      return t.stop();
                  }
              },
              t,
              this
            );
          })
        )),
        function (t) {
          return a.apply(this, arguments);
        }),
      onCancelAvator: function (t) {
        this.setData({ showPopupMask: !1 }),
          (this.data.avator = S.globalData.avator),
          (this.data.nickname = S.globalData.nickname);
      },
      uploadAvatorInfo:
        ((t = i(
          e().mark(function t() {
            var a, i;
            return e().wrap(
              function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (
                        (a = {
                          nickname: this.data.nickname,
                          openid: S.globalData.openId,
                        }),
                        (i = 0),
                        (t.next = 4),
                        n
                          .upload("", this.data.avator, a)
                          .then(function (t) {
                            0 != t.errcode && (i = -1);
                          })
                          .catch(function (t) {
                            console.log(t), (i = -1);
                          })
                      );
                    case 4:
                      return t.abrupt("return", i);
                    case 5:
                    case "end":
                      return t.stop();
                  }
              },
              t,
              this
            );
          })
        )),
        function () {
          return t.apply(this, arguments);
        }),
      onHide: function () {
        console.log("onHide"),
          o.info("onHide", this.data.isPressStartBtn),
          this.data.isPressStartBtn &&
            (clearInterval(r),
            (this.data.onHideTimeStamp = Date.parse(new Date())));
      },
      onUnload: function () {
        if (
          (console.log("onUnload"),
          o.info("onUnload", this.data.isPressStartBtn),
          this.data.isPressStartBtn)
        ) {
          clearInterval(r), wx.offLocationChange(), wx.stopLocationUpdate();
          var t = Date.parse(new Date());
          (s = parseInt(t - this.data.runStartTime) / 1e3),
            (this.data.runTime = this.convertTimeStr(s)),
            this.SaveDataToDisk(1),
            (g = !1),
            (this.data.isPressStartBtn = !1);
        }
      },
      onSaveExitState: function () {
        if (
          (console.log("onSaveExitState"),
          o.info("onSaveExitState", this.data.isPressStartBtn),
          this.data.isPressStartBtn)
        ) {
          var t = Date.parse(new Date());
          (s = parseInt(t - this.data.runStartTime) / 1e3),
            (this.data.runTime = this.convertTimeStr(s)),
            this.SaveDataToDisk(2);
        }
      },
      onPullDownRefresh: function () {},
      onReachBottom: function () {},
      onShareAppMessage: function () {
        return {
          title: "一起来跑步打卡吧~",
          path: "pages/index/index",
          imageUrl: "",
        };
      },
    });
  },
  { isPage: true, isComponent: true, currentFile: "pages/run/run.js" }
);
require("pages/run/run.js");
